fix: pin bucket grid to bottom of viewport with sticky footer; prevents mis-click from layout shift

This commit is contained in:
pyr0ball 2026-03-04 12:26:04 -08:00
parent cf69452e42
commit ba25ee47a5

View file

@ -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>