better layout: upload
Massimo Melina committed
Oct 29, 2023 at 12:44 UTC
dc6e733002a241da23699b46c193830cd914008a
2 files changed
+2
-2
frontend/src/index.scss
+1
-1
@@ -440,7 +440,7 @@ button label {
440
margin-left: 0.5em;
441
}
442
.upload-list {
443
- margin-top: 1em;
443
+ margin-top: .5em;
444
td:nth-child(1) { width: 0; }
445
td:nth-child(2) { text-align: right; width: 0; white-space: nowrap; padding-left: 0.5em; }
446
td:nth-child(3) { padding: .2em .5em; word-break: break-word; }
frontend/src/upload.ts
+1
-1
@@ -106,7 +106,7 @@ export function showUpload() {
106
const queueStr = inQ && t('in_queue', { n: inQ }, "{n} in queue")
107
const size = formatBytes(adding.reduce((a, x) => a + x.file.size, 0))
108
109
- return h(FlexV, { gap: 0, props: acceptDropFiles(more => uploadState.adding.push(...more.map(f => ({ file: ref(f) })))) },
109
+ return h(FlexV, { gap: '.5em', props: acceptDropFiles(more => uploadState.adding.push(...more.map(f => ({ file: ref(f) })))) },
110
h(FlexV, { className: 'upload-toolbar' },
111
!props?.can_upload ? t('no_upload_here', "No upload permission for the current folder")
112
: h(FlexV, {},