forked from XiaoMo/ChatGPT-Next-Web
Support left to right in language arabic
This commit is contained in:
parent
35b4125b98
commit
946e508e8f
@ -567,3 +567,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rtl-screen{
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
@ -15,6 +15,8 @@ import dynamic from "next/dynamic";
|
|||||||
import { Path, SlotID } from "../constant";
|
import { Path, SlotID } from "../constant";
|
||||||
import { ErrorBoundary } from "./error";
|
import { ErrorBoundary } from "./error";
|
||||||
|
|
||||||
|
import { getLang } from "../locales";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
HashRouter as Router,
|
HashRouter as Router,
|
||||||
Routes,
|
Routes,
|
||||||
@ -124,7 +126,7 @@ function Screen() {
|
|||||||
config.tightBorder && !isMobileScreen
|
config.tightBorder && !isMobileScreen
|
||||||
? styles["tight-container"]
|
? styles["tight-container"]
|
||||||
: styles.container
|
: styles.container
|
||||||
}`
|
} ${getLang() === "ar" ? styles["rtl-screen"] : ""}`
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{isAuth ? (
|
{isAuth ? (
|
||||||
|
Loading…
Reference in New Issue
Block a user