Przeglądaj źródła

chore: fix editor dialog scroll overflow

dongchengjie 1 rok temu
rodzic
commit
937f0b5687
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/components/setting/mods/config-viewer.tsx

+ 1 - 1
src/components/setting/mods/config-viewer.tsx

@@ -78,7 +78,7 @@ export const ConfigViewer = forwardRef<DialogRef>((props, ref) => {
       </DialogTitle>
 
       <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} />
       </DialogContent>