Skip to content

Commit

Permalink
fix(web): layout shifting when scrolling up (immich-app#14226)
Browse files Browse the repository at this point in the history
* fix(web): layout shifting when scrolling up

* feedback
  • Loading branch information
alextran1502 authored and yosit committed Nov 21, 2024
1 parent 74e6055 commit 542531a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/src/lib/components/photos-page/asset-grid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@
{@const isPremeasure = preMeasure.includes(bucket)}
{@const display = bucket.intersecting || bucket === $assetStore.pendingScrollBucket || isPremeasure}
<div
id="bucket"
class="bucket"
use:intersectionObserver={{
key: bucket.viewId,
onIntersect: () => handleIntersect(bucket),
Expand Down Expand Up @@ -931,4 +931,9 @@
contain: strict;
scrollbar-width: none;
}
.bucket {
contain: layout size;
transition: height 0.2s ease-out;
}
</style>

0 comments on commit 542531a

Please sign in to comment.