fix(web): make sliding window cover all visible space to show small number of assets (#23796)

This commit is contained in:
Mees Frensel
2025-11-11 15:50:31 +01:00
committed by GitHub
parent 0b3633db4f
commit 905f4375b0

View File

@@ -99,7 +99,7 @@
let scrollTop = $state(0);
let slidingWindow = $derived.by(() => {
const top = (scrollTop || 0) - slidingWindowOffset;
const bottom = top + viewport.height;
const bottom = top + viewport.height + slidingWindowOffset;
return {
top,
bottom,