瀏覽代碼

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>