- {/* Appearance */}
-
+ {/* Interface */}
+
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
{
- resetAppearance()
+ resetInterface()
toast.success(
- t('settings:appearance.resetAppearanceSuccess'),
+ t('settings:interface.resetInterfaceSuccess'),
{
- id: 'reset-appearance',
+ id: 'reset-interface',
description: t(
- 'settings:appearance.resetAppearanceSuccessDesc'
+ 'settings:interface.resetInterfaceSuccessDesc'
),
}
)
@@ -112,33 +113,42 @@ function Appareances() {
{/* Chat Message */}
}
/>
+ {/* Scroll Behavior */}
+
+
+
+
+
{/* Codeblock */}
}
/>
}
/>
{
resetCodeBlockStyle()
toast.success(
- t('settings:appearance.resetCodeBlockSuccess'),
+ t('settings:interface.resetCodeBlockSuccess'),
{
id: 'code-block-style',
description: t(
- 'settings:appearance.resetCodeBlockSuccessDesc'
+ 'settings:interface.resetCodeBlockSuccessDesc'
),
}
)
diff --git a/web-app/src/routes/threads/$threadId.tsx b/web-app/src/routes/threads/$threadId.tsx
index 4857308d2..dcd2b6cdf 100644
--- a/web-app/src/routes/threads/$threadId.tsx
+++ b/web-app/src/routes/threads/$threadId.tsx
@@ -1,4 +1,4 @@
-import { useEffect, useMemo, useRef } from 'react'
+import { useEffect, useMemo, useRef } from 'react'
import { createFileRoute, useParams, redirect, useNavigate } from '@tanstack/react-router'
import cloneDeep from 'lodash.clonedeep'
import { cn } from '@/lib/utils'
@@ -16,7 +16,7 @@ import { useMessages } from '@/hooks/useMessages'
import { useServiceHub } from '@/hooks/useServiceHub'
import DropdownAssistant from '@/containers/DropdownAssistant'
import { useAssistant } from '@/hooks/useAssistant'
-import { useAppearance } from '@/hooks/useAppearance'
+import { useInterfaceSettings } from '@/hooks/useInterfaceSettings'
import { ContentType, ThreadMessage } from '@janhq/core'
import { useSmallScreen, useMobileScreen } from '@/hooks/useMediaQuery'
import { useTools } from '@/hooks/useTools'
@@ -86,7 +86,7 @@ function ThreadDetail() {
const assistants = useAssistant((state) => state.assistants)
const setMessages = useMessages((state) => state.setMessages)
- const chatWidth = useAppearance((state) => state.chatWidth)
+ const chatWidth = useInterfaceSettings((state) => state.chatWidth)
const isSmallScreen = useSmallScreen()
const isMobile = useMobileScreen()
useTools()