chore: remove dialog overflow-scroll

This commit is contained in:
dongchengjie 2024-07-08 22:07:43 +08:00
parent 4e4f9af5b7
commit df6e245e5c

View File

@ -162,7 +162,13 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
<Dialog open={open} onClose={onClose} maxWidth="xl" fullWidth> <Dialog open={open} onClose={onClose} maxWidth="xl" fullWidth>
<DialogTitle>{title}</DialogTitle> <DialogTitle>{title}</DialogTitle>
<DialogContent sx={{ width: "auto", height: "calc(100vh - 185px)" }}> <DialogContent
sx={{
width: "auto",
height: "calc(100vh - 185px)",
overflow: "hidden",
}}
>
<MonacoEditor <MonacoEditor
language={language} language={language}
theme={themeMode === "light" ? "vs" : "vs-dark"} theme={themeMode === "light" ? "vs" : "vs-dark"}