1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 12:58:34 +00:00

change dirent detail value style (#7664)

This commit is contained in:
Michael An
2025-03-25 16:14:35 +08:00
committed by GitHub
parent 28fb4f4887
commit 055bd575b9
5 changed files with 25 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ const MetadataDetails = () => {
}
return (
<DetailItem key={field.key} field={field} readonly={!canEdit}>
{canEdit ? (
{canEdit ?
<DetailEditor
field={field}
value={value}
@@ -55,9 +55,15 @@ const MetadataDetails = () => {
onChange={onChange}
updateFileTags={updateFileTags}
/>
) : (
<CellFormatter readonly={true} field={field} value={value} emptyTip={gettext('Empty')} className="sf-metadata-property-detail-formatter" />
)}
:
<CellFormatter
readonly={true}
field={field}
value={value}
emptyTip={gettext('Empty')}
className="sf-metadata-property-detail-formatter"
/>
}
</DetailItem>
);
})}