Explorar o código

chore: fix editor dialog scroll overflow

dongchengjie hai 1 ano
pai
achega
937f0b5687
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>