From 6def8193cba57f79d6a5e17b8b5d0337ff2f8aee Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 13 Mar 2025 13:45:48 +0700 Subject: [PATCH] fix: scroll setting preferences --- web/screens/Settings/Appearance/index.tsx | 269 +++++++++++----------- 1 file changed, 137 insertions(+), 132 deletions(-) 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)} - /> -
-
-
+ ) }