feat: reposition upload area to the right of slides grid

This commit is contained in:
Thorsten Bus 2026-03-02 10:55:47 +01:00
parent 3225e47fe7
commit 78ea9459c2
4 changed files with 74 additions and 53 deletions

View file

@ -101,7 +101,10 @@ function handleSlideUpdated() {
</div>
</div>
<!-- Side-by-side: grid left (~70%), uploader right (~30%) -->
<div class="flex flex-col lg:flex-row-reverse gap-6">
<!-- Slide uploader information slides are GLOBAL (service_id = null) -->
<div class="lg:w-1/3">
<SlideUploader
data-testid="information-block-uploader"
type="information"
@ -109,8 +112,10 @@ function handleSlideUpdated() {
:show-expire-date="true"
@uploaded="handleSlideUploaded"
/>
</div>
<!-- Slide grid with prominent expire dates -->
<div class="flex-1 lg:w-2/3">
<SlideGrid
data-testid="information-block-grid"
:slides="informationSlides"
@ -120,6 +125,8 @@ function handleSlideUpdated() {
@updated="handleSlideUpdated"
/>
</div>
</div>
</div>
</template>
<style scoped>

View file

@ -48,7 +48,10 @@ function handleSlideUpdated() {
</p>
</div>
<!-- Side-by-side: grid left (~70%), uploader right (~30%) -->
<div class="flex flex-col lg:flex-row-reverse gap-6">
<!-- Slide uploader -->
<div class="lg:w-1/3">
<SlideUploader
data-testid="moderation-block-uploader"
type="moderation"
@ -56,8 +59,10 @@ function handleSlideUpdated() {
:show-expire-date="false"
@uploaded="handleSlideUploaded"
/>
</div>
<!-- Slide grid -->
<div class="flex-1 lg:w-2/3">
<SlideGrid
data-testid="moderation-block-grid"
:slides="moderationSlides"
@ -67,6 +72,8 @@ function handleSlideUpdated() {
@updated="handleSlideUpdated"
/>
</div>
</div>
</div>
</template>
<style scoped>

View file

@ -48,7 +48,10 @@ function handleSlideUpdated() {
</p>
</div>
<!-- Side-by-side: grid left (~70%), uploader right (~30%) -->
<div class="flex flex-col lg:flex-row-reverse gap-6">
<!-- Slide uploader -->
<div class="lg:w-1/3">
<SlideUploader
data-testid="sermon-block-uploader"
type="sermon"
@ -56,8 +59,10 @@ function handleSlideUpdated() {
:show-expire-date="false"
@uploaded="handleSlideUploaded"
/>
</div>
<!-- Slide grid -->
<div class="flex-1 lg:w-2/3">
<SlideGrid
data-testid="sermon-block-grid"
:slides="sermonSlides"
@ -67,6 +72,8 @@ function handleSlideUpdated() {
@updated="handleSlideUpdated"
/>
</div>
</div>
</div>
</template>
<style scoped>

View file

@ -256,8 +256,8 @@ function dismissError() {
border: 2px dashed rgb(229 231 235);
border-radius: 1rem;
background: linear-gradient(135deg, rgb(255 251 235 / 0.5), rgb(254 243 199 / 0.3));
padding: 2rem 1.5rem;
min-height: 160px;
padding: 1.5rem 1rem;
min-height: 120px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}