1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +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 isPremeasure = preMeasure.includes(bucket)}
{@const display = bucket.intersecting || bucket === $assetStore.pendingScrollBucket || isPremeasure} {@const display = bucket.intersecting || bucket === $assetStore.pendingScrollBucket || isPremeasure}
<div <div
id="bucket" class="bucket"
use:intersectionObserver={{ use:intersectionObserver={{
key: bucket.viewId, key: bucket.viewId,
onIntersect: () => handleIntersect(bucket), onIntersect: () => handleIntersect(bucket),
@ -931,4 +931,9 @@
contain: strict; contain: strict;
scrollbar-width: none; scrollbar-width: none;
} }
.bucket {
contain: layout size;
transition: height 0.2s ease-out;
}
</style> </style>