Fix AddImagesModal images grid and accordions layout
This commit is contained in:
parent
4b71e9cf04
commit
fac9c02bed
4 changed files with 54 additions and 52 deletions
|
|
@ -23,7 +23,9 @@
|
||||||
data-side="right"
|
data-side="right"
|
||||||
style="--sidebar-width: 26rem; gap: var(--gap)"
|
style="--sidebar-width: 26rem; gap: var(--gap)"
|
||||||
>
|
>
|
||||||
|
<div class="bg-grey-50 | rounded-2xl | p-8 | overflow-y">
|
||||||
<component :is="activeTab.component" :params="activeTab.params" />
|
<component :is="activeTab.component" :params="activeTab.params" />
|
||||||
|
</div>
|
||||||
<ImagesEditPanel :images="images" />
|
<ImagesEditPanel :images="images" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -136,6 +138,10 @@ const activeTab = ref(tabs[0]);
|
||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
}
|
}
|
||||||
|
#add-images .image img {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.with-sidebar[data-side="right"] > * {
|
.with-sidebar[data-side="right"] > * {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
>
|
>
|
||||||
<Accordion
|
<Accordion
|
||||||
value="0"
|
value="0"
|
||||||
class="flex flex-col"
|
class="flex flex-col | w-full"
|
||||||
style="--row-gap: var(--space-8)"
|
style="--row-gap: var(--space-8)"
|
||||||
>
|
>
|
||||||
<AccordionPanel
|
<AccordionPanel
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="auto-grid | bg-grey-50 | border border-grey-200 | rounded-2xl | w-full | p-8"
|
class="auto-grid"
|
||||||
style="--min: 15rem; --gap: 0.5rem"
|
style="--min: 15rem; --gap: 0.5rem"
|
||||||
>
|
>
|
||||||
<figure v-for="image in images" class="image">
|
<figure v-for="image in images" class="image">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
|
||||||
class="bg-grey-50 | border border-grey-200 | rounded-2xl | p-8 | overflow-y"
|
|
||||||
>
|
|
||||||
<div class="auto-grid" style="--min: 15rem; --gap: 0.5rem">
|
<div class="auto-grid" style="--min: 15rem; --gap: 0.5rem">
|
||||||
<FileUpload
|
<FileUpload
|
||||||
mode="basic"
|
mode="basic"
|
||||||
|
|
@ -49,7 +46,6 @@
|
||||||
</figure>
|
</figure>
|
||||||
<Toast />
|
<Toast />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue