Skip to content

Commit 3f6056b

Browse files
authored
Fix scrolling (#311)
* remove excessive scrolling * more scrolls
1 parent cb2cd54 commit 3f6056b

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

web/src/components/common/ActionStack.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const ActionStack: React.FC<{status: string, actions: Array<ActionStatusV
135135
const tableOutputsArr = actions.map(action => {
136136
const output = action.output || ''
137137
return TABLE_OUTPUT_ACTIONS.includes(action.function.name) && (
138-
<HStack w={"100%"} justify={"center"} mb={2} overflowX={'scroll'}>
138+
<HStack w={"100%"} justify={"center"} mb={2} overflowX={'auto'}>
139139
<Markdown content={processModelToUIText(output, origin, embedConfigs)} />
140140
</HStack>
141141
)
@@ -255,7 +255,7 @@ export const ActionStack: React.FC<{status: string, actions: Array<ActionStatusV
255255
)} */}
256256
</Box>
257257
</HStack>
258-
<VStack maxWidth={"100%"} width={"100%"} overflow={"scroll"}>
258+
<VStack maxWidth={"100%"} width={"100%"} overflow={"auto"}>
259259
{tableOutputsArr.length > 0 &&
260260
// <Text marginBottom={2} borderBottomWidth={1} borderBottomColor={'minusxGreen.800'} style={{ hyphens: 'auto' }} p={2} w={"100%"}>{"Thinking..."}<br/>{preExpanderText}</Text>
261261
tableOutputsArr.map((text, i) => {

web/src/components/common/AdditionalContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const AdditionalContext = () => {
4747
flex={1}
4848
height={'100%'}
4949
width={"100%"}
50-
overflow={"scroll"}
50+
overflow={"auto"}
5151
pt={2}
5252
>
5353
<VStack alignItems={"start"} gap={1}>

web/src/components/common/ChatContent.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
.markdown {
66
width: 100%;
7-
overflow: scroll;
7+
overflow: auto;
88
}

web/src/components/common/CodeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const CodeBlock = ({ code, tool, oldCode, language }: { code: string, too
8686
<Tab>Diff</Tab>
8787
</TabList> }
8888

89-
<TabPanels bg={"#1e1e1e"} borderRadius={5} mt={0} maxHeight={"500px"} overflow={"scroll"}>
89+
<TabPanels bg={"#1e1e1e"} borderRadius={5} mt={0} maxHeight={"500px"} overflow={"auto"}>
9090
<TabPanel p={0}>
9191
<SyntaxHighlighter codeTagProps={{}} language={language} style={vsd} showLineNumbers={true} wrapLines={true} lineProps={linePropsFn} lineNumberStyle={{display: 'none'}}>
9292
{code}

web/src/components/common/Markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function ModifiedTable(props: any) {
326326
</Tooltip>
327327
</HStack>
328328
<div style={{
329-
maxHeight: '200px',
329+
// maxHeight: '200px',
330330
overflowY: 'auto',
331331
overflowX: 'auto',
332332
border: '1px solid #e2e8f0',

web/src/components/common/TaskUI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ const TaskUI = forwardRef<HTMLTextAreaElement>((_props, ref) => {
522522
pt={2}
523523
>
524524

525-
<VStack overflowY={'scroll'} height={"100%"}>
525+
<VStack overflowY={'auto'} height={"100%"}>
526526
{
527527
metaQuestion &&
528528
<>

web/src/components/devtools/Settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const SettingsPage = () => {
157157
flex={1}
158158
// height={'80vh'}
159159
width={"100%"}
160-
overflow={"scroll"}
160+
overflow={"auto"}
161161
// pt={2}
162162
>
163163
<SettingsBlock title="Profile">

0 commit comments

Comments
 (0)