Skip to content

Commit 1e90d51

Browse files
committed
fix scroll in document editor
1 parent 2147223 commit 1e90d51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/ui-customization-doc-editor-sidebar/src/DocumentEditor.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ const DocumentEditor = (props: Props) => {
510510
<FrameProvider>
511511
<I18nProvider shouldLogMissingMessages={false} locale="en-US">
512512
<Box
513-
padding="lg"
513+
paddingY="lg"
514+
paddingInlineStart="lg"
514515
alignItems="center"
515516
display="flex"
516517
flexDirection="column"
@@ -556,6 +557,7 @@ const DocumentEditor = (props: Props) => {
556557

557558
return { width: 180, height: 250 };
558559
}}
560+
style={{ overflowY: "auto", maxHeight: "calc(100vh - 200px)" }}
559561
/>
560562
<Box gap="md" display="flex">
561563
<ActionButton

0 commit comments

Comments
 (0)