@samitouri / QOSami-HFS / commits / 65d89084

admin/fs: better layout

Massimo Melina committed May 31, 2024 at 15:50 UTC 65d89084b2490b49eb8020ed54fb4c8dd557e5cc
2 files changed +6 -9
admin/src/FileForm.ts
+2 -2
@@ -154,9 +154,9 @@ export default function FileForm({ file, addToBar, statusApi, accounts, saved }:
154 { k: 'id', comp: LinkField, statusApi, xs: 12 },
155 perm('can_read', "Who can see but not download will be asked to login"),
156 perm('can_see', "If you can't see, you may still download with a direct link"),
157 - perm('can_archive', "Should this be included when user downloads as ZIP", { lg: isDir ? true : 12 }),
158 - perm('can_list', undefined, { contentText: "subfolders" }),
157 + perm('can_archive', "Should this be included when user downloads as ZIP", { lg: isDir ? 6 : 12 }),
158 perm('can_delete', [needSourceWarning, "Those who can delete can also rename and cut/move"]),
159 + perm('can_list', undefined, { contentText: "subfolders" }),
160 perm('can_upload', needSourceWarning, { contentText: "subfolders" }),
161 isLink && {
162 k: 'target',
admin/src/VfsMenuBar.ts
+4 -7
@@ -49,13 +49,10 @@ function SystemIntegrationButton({ platform }: { platform: string | undefined })
49 ...(!integrated?.is ? {
50 children: "System integration",
51 async onClick() {
52 - const msg = h(Box, {}, "We are going to add a command in the right-click of Windows File Manager",
53 - h('img', { src: 'win-shell.png', style: {
54 - display: 'block',
55 - width: 'min(30em, 100%)',
56 - marginTop: '1em',
57 - } }),
58 - h(Alert, { severity: 'info' }, "It will also automatically copy the URL, ready to paste!"),
52 + const msg = h(Box, { width: { xs: '100%', sm: '34em' } },
53 + h('img', { src: 'win-shell.png', style: { display: 'block', width: '100%' } }),
54 + h(Alert, { severity: 'info' }, "We are going to add a command in the right-click of Windows File Manager.",
55 + h(Box, {}, "It will also automatically copy the URL, ready to paste!")),
56 )
57 const parent = await promptDialog(msg, {
58 field: { comp: VfsPathField, label: "Add to this folder", placeholder: "home",