Преглед на файлове

chore: fix editor dialog scroll overflow

dongchengjie преди 1 година
родител
ревизия
937f0b5687
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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>