fix(front): set gap between consecutive items in table (upload widget)
This commit is contained in:
parent
6eb5c14176
commit
8b23d02978
|
@ -349,7 +349,7 @@ useEventListener(window, 'beforeunload', (event) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// collapse section
|
// collapse section
|
||||||
const section = ref(false)
|
const isServerDisclosureOpen = ref(false)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -393,6 +393,7 @@ const section = ref(false)
|
||||||
<file-upload-widget
|
<file-upload-widget
|
||||||
ref="upload"
|
ref="upload"
|
||||||
v-model="files"
|
v-model="files"
|
||||||
|
:class="$style.uploader"
|
||||||
:data="uploadData"
|
:data="uploadData"
|
||||||
@input-file="inputFile"
|
@input-file="inputFile"
|
||||||
>
|
>
|
||||||
|
@ -469,8 +470,8 @@ const section = ref(false)
|
||||||
<!-- Edit the metadata of uploaded files -->
|
<!-- Edit the metadata of uploaded files -->
|
||||||
|
|
||||||
<Table
|
<Table
|
||||||
:class="$style.table"
|
|
||||||
v-if="files.length > 0"
|
v-if="files.length > 0"
|
||||||
|
:class="$style.table"
|
||||||
:grid-template-columns="['1fr', 'auto', 'auto', 'auto']"
|
:grid-template-columns="['1fr', 'auto', 'auto', 'auto']"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
|
@ -580,9 +581,9 @@ const section = ref(false)
|
||||||
align-left
|
align-left
|
||||||
no-items
|
no-items
|
||||||
v-bind="
|
v-bind="
|
||||||
section
|
isServerDisclosureOpen
|
||||||
? { collapse: () => { section = false } }
|
? { collapse: () => { isServerDisclosureOpen = false } }
|
||||||
: { expand: () => { section = true } }
|
: { expand: () => { isServerDisclosureOpen = true } }
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div style="grid-column: 1 / -1">
|
<div style="grid-column: 1 / -1">
|
||||||
|
@ -617,12 +618,12 @@ const section = ref(false)
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style module lang="scss">
|
<style module lang="scss">
|
||||||
.file-uploads {
|
.uploader {
|
||||||
padding: 32px;
|
padding: 32px;
|
||||||
border-radius: var(--fw-border-radius);
|
border-radius: var(--fw-border-radius);
|
||||||
border: 2px dashed var(--border-color);
|
border: 2px dashed var(--border-color);
|
||||||
}
|
}
|
||||||
.table {
|
.table {
|
||||||
b:not(:first-child) { margin-left: 12px; }
|
b { padding: 0 6px; }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue