1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-20 18:15:52 +02:00

fix(web): layout shifting when scrolling up (#14226)

* fix(web): layout shifting when scrolling up

* feedback
This commit is contained in:
Alex 2024-11-19 11:30:07 -06:00 committed by GitHub
parent 1737013e66
commit b66c53bef3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),
@ -931,4 +931,9 @@
contain: strict;
scrollbar-width: none;
}
.bucket {
contain: layout size;
transition: height 0.2s ease-out;
}
</style>