fix: profile can not edit

This commit is contained in:
GyDi 2022-11-24 10:26:25 +08:00
parent 558b8499af
commit 1a31fa9067
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ export const EditorViewer = (props: Props) => {
<Dialog open={open} onClose={onClose}> <Dialog open={open} onClose={onClose}>
<DialogTitle>{t("Edit File")}</DialogTitle> <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} /> <div style={{ width: "100%", height: "420px" }} ref={editorRef} />
</DialogContent> </DialogContent>

View File

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