fix(web): make sliding window cover all visible space to show small number of assets (#23796)
parent
0b3633db4f
commit
905f4375b0
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue