fix: dialog styles

This commit is contained in:
MystiPanda
2024-07-03 13:13:29 +08:00
parent a49e4d8d0c
commit 1fbc67fe98
2 changed files with 5 additions and 5 deletions

View File

@@ -162,7 +162,7 @@ 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: "100vh" }}>
<DialogContent sx={{ width: "auto", height: "calc(100vh - 185px)" }}>
<MonacoEditor
language={language}
theme={themeMode === "light" ? "vs" : "vs-dark"}