diff --git a/.babelrc b/.babelrc
index 32e0a1de8..53e4d9b24 100644
--- a/.babelrc
+++ b/.babelrc
@@ -10,7 +10,5 @@
}
}
]
- ],
- "plugins": [
]
}
diff --git a/.prettierrc.js b/.prettierrc.js
index 756a2fab1..95cc75ffa 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -7,6 +7,4 @@ module.exports = {
trailingComma: 'all',
bracketSpacing: true,
arrowParens: 'always',
- plugins: [
- ],
};
diff --git a/app/components/Screen/index.tsx b/app/components/Screen/index.tsx
index 8650eb4c0..847a26446 100644
--- a/app/components/Screen/index.tsx
+++ b/app/components/Screen/index.tsx
@@ -5,8 +5,6 @@ import { getLang } from "@/app/locales";
import useMobileScreen from "@/app/hooks/useMobileScreen";
import { isIOS } from "@/app/utils";
-
-import backgroundUrl from "!url-loader!@/app/icons/background.svg";
import useListenWinResize from "@/app/hooks/useListenWinResize";
interface ScreenProps {
@@ -40,9 +38,8 @@ export default function Screen(props: ScreenProps) {
return (
diff --git a/app/components/home.tsx b/app/components/home.tsx
index 767869f41..ffac64fda 100644
--- a/app/components/home.tsx
+++ b/app/components/home.tsx
@@ -9,7 +9,7 @@ import styles from "./home.module.scss";
import BotIcon from "../icons/bot.svg";
import LoadingIcon from "../icons/three-dots.svg";
-import { getCSSVar } from "../utils";
+import { getCSSVar, useMobileScreen } from "../utils";
import dynamic from "next/dynamic";
import { ModelProvider, Path, SlotID } from "../constant";
@@ -23,14 +23,13 @@ import {
Route,
useLocation,
} from "react-router-dom";
-import { SideBar } from "@/app/containers/Sidebar";
+import { SideBar } from "./sidebar";
import { useAppConfig } from "../store/config";
import { AuthPage } from "./auth";
import { getClientConfig } from "../config/client";
import { ClientApi } from "../client/api";
import { useAccessStore } from "../store";
import { identifyDefaultClaudeModel } from "../utils/checkers";
-import backgroundUrl from "!url-loader!@/app/icons/background.svg";
export function Loading(props: { noLogo?: boolean }) {
return (
@@ -125,9 +124,13 @@ const loadAsyncGoogleFont = () => {
};
function Screen() {
+ const config = useAppConfig();
const location = useLocation();
const isHome = location.pathname === Path.Home;
const isAuth = location.pathname === Path.Auth;
+ const isMobileScreen = useMobileScreen();
+ const shouldTightBorder =
+ getClientConfig()?.isApp || (config.tightBorder && !isMobileScreen);
useEffect(() => {
loadAsyncGoogleFont();
@@ -137,11 +140,10 @@ function Screen() {
{isAuth ? (
<>
@@ -152,15 +154,13 @@ function Screen() {
-
-
- } />
- } />
- } />
- } />
- } />
-
-
+
+ } />
+ } />
+ } />
+ } />
+ } />
+
>
)}
diff --git a/app/icons/background.svg b/app/icons/background.svg
deleted file mode 100644
index fa69bdff1..000000000
--- a/app/icons/background.svg
+++ /dev/null
@@ -1,36 +0,0 @@
-
diff --git a/tailwind.config.js b/tailwind.config.js
index ab82d1535..fee11f297 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -74,6 +74,7 @@ module.exports = {
'select-btn': 'rgba(0, 0, 0, 0.05)',
'chat-actions-popover-color': 'var(--tip-popover-color)',
'chat-panel': 'var(--chat-panel-bg)',
+ 'global': '#E3E3ED',
},
boxShadow: {
'btn': '0px 4px 10px 0px rgba(60, 68, 255, 0.14)',