change textfield's theme

This commit is contained in:
2025-10-19 22:28:27 +08:00
parent 8bfc183b66
commit 7b8f6c02e9
6 changed files with 10 additions and 9 deletions

View File

@@ -115,7 +115,7 @@ const DirectLinks = () => {
label={t("modals.sourceLink")}
multiline
value={contents}
variant="outlined"
variant="filled"
fullWidth
slotProps={{
htmlInput: { readonly: true },

View File

@@ -187,7 +187,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
},
}}
value={setting.password ?? ""}
onChange={(e) => {
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
const value = e.target.value.trim();
if (!/^[a-zA-Z0-9]*$/.test(value) || value.length > 32) return;
onSettingChange({ ...setting, password: value });
@@ -292,7 +292,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
getOptionLabel={(option: string | valueOption) => (typeof option === "string" ? option : t(option.label))}
disableClearable
options={expireOptions}
renderInput={(params) => <TextField sx={{ width: 150 }} {...params} variant={"standard"} />}
renderInput={(params) => <TextField sx={{ width: 150 }} {...params} variant={"filled"} />}
/>
</FormControl>
<Typography>{t("application:modals.expireSuffix")}</Typography>
@@ -368,7 +368,7 @@ const ShareSettingContent = ({ setting, file, editing, onSettingChange }: ShareS
}
disableClearable
options={downloadOptions}
renderInput={(params) => <TextField sx={{ width: 200 }} {...params} variant={"standard"} />}
renderInput={(params) => <TextField sx={{ width: 200 }} {...params} variant={"filled"} />}
/>
</FormControl>
<Typography>{t("application:modals.expireSuffix")}</Typography>