소스 검색

fix: profile can not edit

GyDi 2 년 전
부모
커밋
1a31fa9067
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/profile/editor-viewer.tsx
  2. 1 1
      src/components/profile/info-viewer.tsx

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

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

+ 1 - 1
src/components/profile/info-viewer.tsx

@@ -86,7 +86,7 @@ export const InfoViewer = (props: Props) => {
     <Dialog open={open} onClose={onClose}>
       <DialogTitle sx={{ pb: 0.5 }}>{t("Edit Info")}</DialogTitle>
 
-      <DialogContent sx={{ width: 336, pb: 1 }}>
+      <DialogContent sx={{ width: 336, pb: 1, userSelect: "text" }}>
         <TextField
           {...textFieldProps}
           disabled