Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 48b9300

Browse files
authored
fix(gui): scrollbars on documentation text (#798)
* fix(gui): scrollbars on documentation text * style: apply automatic fixes of linters Co-authored-by: lars-reimann <[email protected]>
1 parent 6cda741 commit 48b9300

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api-editor/gui/src/app/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const App: React.FC = function () {
158158
)}
159159
{currentUserAction.type === 'todo' && <TodoForm target={userActionTarget || rawPythonPackage} />}
160160
</GridItem>
161-
<GridItem gridArea="middlePane" overflow="auto">
161+
<GridItem gridArea="middlePane" overflow="auto" display="flex">
162162
<Box flexGrow={1} overflowY="auto" width="100%">
163163
{(batchMode === BatchMode.None || !isValidUsername) && <SelectionView />}
164164

api-editor/gui/src/features/packageData/selectionView/DocumentationText.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const DocumentationText: React.FC<DocumentationTextProps> = function ({ d
9999
<Flex justifyContent="flex-start">
100100
<HStack
101101
alignItems="flex-start"
102+
overflow="hidden"
102103
cursor={!hasMultipleLines || readMore ? undefined : 'pointer'}
103104
onClick={
104105
!hasMultipleLines || readMore
@@ -122,7 +123,7 @@ export const DocumentationText: React.FC<DocumentationTextProps> = function ({ d
122123
/>
123124
)}
124125

125-
<Stack spacing={4}>
126+
<Stack spacing={4} overflowX="auto" paddingBottom={4}>
126127
<ReactMarkdown
127128
components={components}
128129
rehypePlugins={[rehypeKatex]}

0 commit comments

Comments
 (0)