From d6e578dac82b99fd2fdfb5729d46d39a49b5effd Mon Sep 17 00:00:00 2001 From: FliesentischKing Date: Sun, 4 Oct 2026 03:06:48 +0200 Subject: [PATCH] Tighter pagination reserve in page size calculation The reserve was ~24px larger than the actual pagination block, which could cost the grid a full row at boundary viewport heights. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- app/composables/usePageSize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/composables/usePageSize.ts b/app/composables/usePageSize.ts index 17e3ae3..745358c 100644 --- a/app/composables/usePageSize.ts +++ b/app/composables/usePageSize.ts @@ -3,7 +3,7 @@ import { useWindowSize } from '@vueuse/core' // Spiegelt das Upload-Grid aus index.vue: // grid-cols-4 sm:6 md:8 lg:12, auto-rows 6.5rem / sm:7rem / lg:7.5rem, gap-2 -const PAGINATION_RESERVE_PX = 76 // Pagination (~36px) + mt-4 + Bottom-Padding +const PAGINATION_RESERVE_PX = 60 // Pagination (~36px) + pt-4, knapp bemessen damit die letzte Zeile nicht wegfällt const FALLBACK_TOP_PX = 150 // SSR-Schätzung: Header + Padding + Filterzeile interface PageSizeOptions {