feat: always show scrollbar
This commit is contained in:
parent
4ad874dc60
commit
4c5c5ddc51
2 changed files with 4 additions and 14 deletions
|
|
@ -62,7 +62,7 @@ export function UserSettingsSection() {
|
|||
const continueAfterToolRejection =
|
||||
config.ui?.continueAfterToolRejection ?? false;
|
||||
const codeWrap = config.ui?.codeWrap ?? false;
|
||||
const showChatScrollbar = config.ui?.showChatScrollbar ?? false;
|
||||
|
||||
const readResponseTTS = config.experimental?.readResponseTTS ?? false;
|
||||
const autoAcceptEditToolDiffs = config.ui?.autoAcceptEditToolDiffs ?? false;
|
||||
const displayRawMarkdown = config.ui?.displayRawMarkdown ?? false;
|
||||
|
|
@ -129,15 +129,7 @@ export function UserSettingsSection() {
|
|||
value={codeWrap}
|
||||
onChange={(value) => handleUpdate({ codeWrap: value })}
|
||||
/>
|
||||
<UserSetting
|
||||
type="toggle"
|
||||
title="Show Chat Scrollbar"
|
||||
description="Enables a scrollbar in the chat window."
|
||||
value={showChatScrollbar}
|
||||
onChange={(value) =>
|
||||
handleUpdate({ showChatScrollbar: value })
|
||||
}
|
||||
/>
|
||||
|
||||
<UserSetting
|
||||
type="toggle"
|
||||
title="Text-to-Speech Output"
|
||||
|
|
|
|||
|
|
@ -111,9 +111,7 @@ export function Chat() {
|
|||
const stepsDivRef = useRef<HTMLDivElement>(null);
|
||||
const tabsRef = useRef<HTMLDivElement>(null);
|
||||
const history = useAppSelector((state) => state.session.history);
|
||||
const showChatScrollbar = useAppSelector(
|
||||
(state) => state.config.config.ui?.showChatScrollbar,
|
||||
);
|
||||
|
||||
const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit);
|
||||
const mode = useAppSelector((store) => store.session.mode);
|
||||
const isInEdit = useAppSelector((store) => store.session.isInEdit);
|
||||
|
|
@ -381,7 +379,7 @@ export function Chat() {
|
|||
[sendInput, isLastUserInput, history, stepsOpen],
|
||||
);
|
||||
|
||||
const showScrollbar = showChatScrollbar ?? window.innerHeight > 5000;
|
||||
const showScrollbar = true;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue