mirror of
https://github.com/immich-app/immich.git
synced 2024-11-21 18:16:55 +02:00
fix(web): layout shifting when scrolling up (#14226)
* fix(web): layout shifting when scrolling up * feedback
This commit is contained in:
parent
1737013e66
commit
b66c53bef3
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user