diff --git a/web/screens/Settings/Appearance/index.tsx b/web/screens/Settings/Appearance/index.tsx index 409b7c727..35d429132 100644 --- a/web/screens/Settings/Appearance/index.tsx +++ b/web/screens/Settings/Appearance/index.tsx @@ -3,7 +3,7 @@ import { useCallback } from 'react' import { useTheme } from 'next-themes' import { fs, joinPath } from '@janhq/core' -import { Button, Select, Switch } from '@janhq/joi' +import { Button, ScrollArea, Select, Switch } from '@janhq/joi' import { useAtom, useAtomValue } from 'jotai' import { twMerge } from 'tailwind-merge' @@ -73,147 +73,152 @@ export default function AppearanceOptions() { ) return ( -
-
-
-
-
Appearance
-
-

- Select a color theme. -

-
- handleClickTheme(e)} + /> +
+ {themeData?.reduceTransparent && ( +
+
+
+
Interface theme
+
+
+
+ +
-
- - + )} +
+
+
+
Chat Width
+
+

+ Choose the width of the chat area to customize your conversation + view. +

-
- )} -
-
-
-
Chat Width
-
-

- Choose the width of the chat area to customize your conversation - view. -

-
-
-
- {chatWidthOption.map((option) => { - return ( -
-
+
+
+
+
+
Spell Check
+
+

+ Turn on to enable spell check. +

+
+
+ setSpellCheck(e.target.checked)} + /> +
+
+
+
+
+
Scrolling Bar
+
+

+ Turn on to make scrolling bar visible across windows. +

+
+
+ setShowScrollBar(e.target.checked)} + />
-
-
-
-
Spell Check
-
-

- Turn on to enable spell check. -

-
-
- setSpellCheck(e.target.checked)} - /> -
-
-
-
-
-
Scrolling Bar
-
-

- Turn on to make scrolling bar visible across windows. -

-
-
- setShowScrollBar(e.target.checked)} - /> -
-
-
+ ) }