소스 검색

Merge pull request #2 from Kuingsmile/main

feat: Update DialogContent width in EditorViewer
wonfen 1 년 전
부모
커밋
ab5fb5749b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/profile/editor-viewer.tsx

+ 2 - 2
src/components/profile/editor-viewer.tsx

@@ -74,10 +74,10 @@ export const EditorViewer = (props: Props) => {
   });
 
   return (
-    <Dialog open={open} onClose={onClose}>
+    <Dialog open={open} onClose={onClose} maxWidth="xl" fullWidth>
       <DialogTitle>{t("Edit File")}</DialogTitle>
 
-      <DialogContent sx={{ width: 520, pb: 1, userSelect: "text" }}>
+      <DialogContent sx={{ width: "95%", pb: 1, userSelect: "text" }}>
         <div style={{ width: "100%", height: "420px" }} ref={editorRef} />
       </DialogContent>