mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
Add auto scroll configuration to settings.
This commit is contained in:
parent
edd83c0908
commit
98e323af4c
@ -1699,6 +1699,23 @@ export function Settings() {
|
||||
}
|
||||
></input>
|
||||
</ListItem>
|
||||
<ListItem
|
||||
title={Locale.Settings.AutoScroll.Title}
|
||||
subTitle={Locale.Settings.AutoScroll.SubTitle}
|
||||
>
|
||||
<input
|
||||
aria-label={Locale.Settings.AutoScroll.Title}
|
||||
type="checkbox"
|
||||
checked={config.enableAutoScroll}
|
||||
data-testid="enable-auto-scroll-checkbox"
|
||||
onChange={(e) =>
|
||||
updateConfig(
|
||||
(config) =>
|
||||
(config.enableAutoScroll = e.currentTarget.checked),
|
||||
)
|
||||
}
|
||||
></input>
|
||||
</ListItem>
|
||||
</List>
|
||||
|
||||
<SyncItems />
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user