forked from BRETT/BRETT
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>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user