From 98e323af4ce96e6e6efe457fe3e480e58cce4679 Mon Sep 17 00:00:00 2001 From: gq97a6 Date: Fri, 25 Apr 2025 03:50:45 +0200 Subject: [PATCH] Add auto scroll configuration to settings. --- app/components/settings.tsx | 17 +++++++++++++++++ app/store/config.ts | 2 ++ 2 files changed, 19 insertions(+) diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 68ebcf084..a43bedebd 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -1699,6 +1699,23 @@ export function Settings() { } > + + + updateConfig( + (config) => + (config.enableAutoScroll = e.currentTarget.checked), + ) + } + > + diff --git a/app/store/config.ts b/app/store/config.ts index 45e21b026..061fed971 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -55,6 +55,8 @@ export const DEFAULT_CONFIG = { enableCodeFold: true, // code fold config + enableAutoScroll: true, // auto scroll config + disablePromptHint: false, dontShowMaskSplashScreen: false, // dont show splash screen when create chat