admin/fs: better layout
Massimo Melina committed
Jan 24, 2024 at 22:22 UTC
e8cee115bdba60edba496daabd95ed7b7e0df341
1 file changed
+4
-4
admin/src/FileForm.ts
+4
-4
@@ -154,9 +154,9 @@ export default function FileForm({ file, addToBar, statusApi }: FileFormProps) {
154
perm('can_list', "Permission to see content of folders", { contentText: "subfolders" }),
155
perm('can_delete', [needSourceWarning, "Those who can delete can also rename and cut/move"]),
156
perm('can_upload', needSourceWarning, { contentText: "subfolders" }),
157
- showSize && { k: 'size', comp: DisplayField, lg: 4, toField: formatBytes },
158
- showTimestamps && { k: 'ctime', comp: DisplayField, md: 6, lg: showSize && 4, label: "Created", toField: formatTimestamp },
159
- showTimestamps && { k: 'mtime', comp: DisplayField, md: 6, lg: showSize && 4, label: "Modified", toField: formatTimestamp },
157
+ showSize && { k: 'size', comp: DisplayField, sm: 6, lg: 4, toField: formatBytes },
158
+ showTimestamps && { k: 'ctime', comp: DisplayField, sm: 6, lg: showSize && 4, label: "Created", toField: formatTimestamp },
159
+ showTimestamps && { k: 'mtime', comp: DisplayField, sm: 6, lg: showSize && 4, label: "Modified", toField: formatTimestamp },
160
showAccept && { k: 'accept', label: "Accept on upload", placeholder: "anything", xl: showWebsite ? 4 : 12,
161
helperText: h(Link, { href: ACCEPT_LINK, target: '_blank' }, "Example: .zip") },
162
showWebsite && { k: 'default', comp: BoolField, xl: true,
@@ -179,7 +179,7 @@ export default function FileForm({ file, addToBar, statusApi }: FileFormProps) {
179
const others = _.difference(Object.keys(defaultPerms), dontShow)
180
return {
181
comp: WhoField,
182
- k: perm, lg: 6, xl: 4,
182
+ k: perm, sm: 6, xl: 4,
183
parent, accounts, helperText, isDir,
184
otherPerms: others.map(x => ({ value: x, label: who2desc(x) })),
185
label: "Who can " + perm2word(perm),