Elffuss BraidHub

kikocis/continue public

Revert "feat: always show scrollbar"

This reverts commit 4c5c5ddc51dfd72cbec8f3efd4bf5f37132a1367.
Changeset9c8f3520bf15af66caa425df4b5e6c944813a18fa7ff629346203cd752f0c85d
AuthorNate <sestinj@gmail.com> · 2025-09-14 17:54 -07:00
CommitterNate <sestinj@gmail.com> · 2025-09-14 17:54 -07:00
Parentse5e4265d774f

Browse the files at this changeset

2 files changed

modified gui/src/pages/config/sections/UserSettingsSection.tsx +10 −2
@@ -62,7 +62,7 @@
6262 const continueAfterToolRejection =
6363 config.ui?.continueAfterToolRejection ?? false;
6464 const codeWrap = config.ui?.codeWrap ?? false;
65-
65+ const showChatScrollbar = config.ui?.showChatScrollbar ?? false;
6666 const readResponseTTS = config.experimental?.readResponseTTS ?? false;
6767 const autoAcceptEditToolDiffs = config.ui?.autoAcceptEditToolDiffs ?? false;
6868 const displayRawMarkdown = config.ui?.displayRawMarkdown ?? false;
@@ -129,7 +129,15 @@
129129 value={codeWrap}
130130 onChange={(value) => handleUpdate({ codeWrap: value })}
131131 />
132-
132+ <UserSetting
133+ type="toggle"
134+ title="Show Chat Scrollbar"
135+ description="Enables a scrollbar in the chat window."
136+ value={showChatScrollbar}
137+ onChange={(value) =>
138+ handleUpdate({ showChatScrollbar: value })
139+ }
140+ />
133141 <UserSetting
134142 type="toggle"
135143 title="Text-to-Speech Output"
modified gui/src/pages/gui/Chat.tsx +4 −2
@@ -111,7 +111,9 @@
111111 const stepsDivRef = useRef<HTMLDivElement>(null);
112112 const tabsRef = useRef<HTMLDivElement>(null);
113113 const history = useAppSelector((state) => state.session.history);
114-
114+ const showChatScrollbar = useAppSelector(
115+ (state) => state.config.config.ui?.showChatScrollbar,
116+ );
115117 const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit);
116118 const mode = useAppSelector((store) => store.session.mode);
117119 const isInEdit = useAppSelector((store) => store.session.isInEdit);
@@ -379,7 +381,7 @@
379381 [sendInput, isLastUserInput, history, stepsOpen],
380382 );
381383
382- const showScrollbar = true;
384+ const showScrollbar = showChatScrollbar ?? window.innerHeight > 5000;
383385
384386 return (
385387 <>