mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 06:31:58 +00: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
1 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue