@samitouri / QOSami-HFS / commits / 1e299052

fix: admin/fs: bad layout for folder without upload

Massimo Melina committed Jan 23, 2025 at 18:02 UTC 1e299052645438176e39eaf719872ded8886f992
1 file changed +1 -1
admin/src/FileForm.ts
+1 -1
@@ -195,7 +195,7 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved }:
195 showTimestamps && { k: 'mtime', comp: DisplayField, sm: 6, lg: showSize && 4, label: "Modified", toField: formatTimestamp },
196 showAccept && { k: 'accept', label: "Accept on upload", placeholder: "anything", xl: showWebsite ? 4 : 12,
197 helperText: h(Link, { href: ACCEPT_LINK, target: '_blank' }, "Example: .zip") },
198 - showWebsite && { k: 'default', comp: BoolField, xl: showWebsite ? 8 : 12,
198 + showWebsite && { k: 'default', comp: BoolField, xl: showAccept ? 8 : 12,
199 label: "Serve as web-page if index.html is found" + (inheritedDefault && values.default == null ? ' (inherited)' : ''),
200 value: values.default ?? inheritedDefault,
201 toField: Boolean, fromField: (v:boolean) => v && !inheritedDefault ? 'index.html' : v ? null : false,