Selaa lähdekoodia

fix: profile can not edit

GyDi 2 vuotta sitten
vanhempi
commit
1a31fa9067

+ 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