Skip to content

Commit

Permalink
chore: remove dialog overflow-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchengjie committed Jul 8, 2024
1 parent 4e4f9af commit df6e245
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/profile/editor-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
<Dialog open={open} onClose={onClose} maxWidth="xl" fullWidth>
<DialogTitle>{title}</DialogTitle>

<DialogContent sx={{ width: "auto", height: "calc(100vh - 185px)" }}>
<DialogContent
sx={{
width: "auto",
height: "calc(100vh - 185px)",
overflow: "hidden",
}}
>
<MonacoEditor
language={language}
theme={themeMode === "light" ? "vs" : "vs-dark"}
Expand Down

0 comments on commit df6e245

Please sign in to comment.