chore: fix editor dialog scroll overflow

This commit is contained in:
dongchengjie 2024-05-17 04:03:49 +08:00
parent b99e8d7f46
commit 4eedc39e97

View File

@ -78,7 +78,7 @@ export const ConfigViewer = forwardRef<DialogRef>((props, ref) => {
</DialogTitle> </DialogTitle>
<DialogContent <DialogContent
sx={{ width: "94%", height: "100vh", pb: 1, userSelect: "text" }} sx={{ width: "auto", height: "100vh", pb: 1, userSelect: "text" }}
> >
<div style={{ width: "100%", height: "100%" }} ref={editorRef} /> <div style={{ width: "100%", height: "100%" }} ref={editorRef} />
</DialogContent> </DialogContent>