Skip to content

Commit

Permalink
fix(preview): update overflow behaviour (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin authored Dec 12, 2023
1 parent c765bde commit 0ad9d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/layouts/EditPage/MarkdownEditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const MarkdownEditPage = ({ togglePreview }: MarkdownPageProps) => {
setEditorContent={(content: string) => setEditorValue(content)}
shouldDisableSave={isAnyDrawerOpen}
>
<Box flex="0 0 45vw" p="1.25rem">
<Box flex="0 0 45vw" p="1.25rem" overflow="auto">
<Flex flexDir="row" bg="gray.100" p="1.38rem" mb="1.38rem">
<Flex flexDir="column" alignContent="flex-start" mr="1rem">
<Text textStyle="subhead-1" mb="0.62rem">
Expand Down
8 changes: 1 addition & 7 deletions src/layouts/LegacyEditPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,7 @@ const EditPage = ({ match }) => {
setEditorContent={setEditorValue}
>
{/* Editor */}
<Box
flexGrow={1}
p="1.25rem"
maxH="100%"
overflowY="scroll"
flex="0 0 45vw"
>
<Box p="1.25rem" maxH="100%" overflowY="scroll" flex="0 0 45vw">
<MarkdownEditor
siteName={siteName}
onChange={(value) => setEditorValue(value)}
Expand Down

0 comments on commit 0ad9d91

Please sign in to comment.