fix: pin bucket grid to bottom of viewport with sticky footer; prevents mis-click from layout shift
This commit is contained in:
parent
cf69452e42
commit
ba25ee47a5
1 changed files with 20 additions and 5 deletions
|
|
@ -49,11 +49,13 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<LabelBucketGrid
|
<div class="bucket-grid-footer">
|
||||||
:labels="labels"
|
<LabelBucketGrid
|
||||||
:is-bucket-mode="isDragging"
|
:labels="labels"
|
||||||
@label="handleLabel"
|
:is-bucket-mode="isDragging"
|
||||||
/>
|
@label="handleLabel"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- Undo toast -->
|
<!-- Undo toast -->
|
||||||
|
|
@ -393,5 +395,18 @@ onUnmounted(() => {
|
||||||
|
|
||||||
.card-stack-wrapper {
|
.card-stack-wrapper {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
/* Give bottom breathing room so grid doesn't overlap content */
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bucket grid stays pinned to the bottom of the viewport while the email card
|
||||||
|
can be scrolled freely. "hired" (10th button) may clip on very small screens
|
||||||
|
— that is intentional per design. */
|
||||||
|
.bucket-grid-footer {
|
||||||
|
position: sticky;
|
||||||
|
bottom: 0;
|
||||||
|
background: var(--color-bg, var(--color-surface, #f0f4fc));
|
||||||
|
padding: 0.5rem 0 0.75rem;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue