mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat(web): wasm justified layout, sync edition (#23194)
* the invisible wasm use npm version * deterministic tests * add todo * linting * bump library, add helpers * use target height for unfilled rows * update tests
This commit is contained in:
@@ -26,12 +26,12 @@ export abstract class VirtualScrollManager {
|
||||
#suspendTransitions = $state(false);
|
||||
#resetScrolling = debounce(() => (this.#scrolling = false), 1000);
|
||||
#resetSuspendTransitions = debounce(() => (this.suspendTransitions = false), 1000);
|
||||
#justifiedLayoutOptions = $derived.by(() => ({
|
||||
#justifiedLayoutOptions = $derived({
|
||||
spacing: 2,
|
||||
heightTolerance: 0.15,
|
||||
heightTolerance: 0.5,
|
||||
rowHeight: this.#rowHeight,
|
||||
rowWidth: Math.floor(this.viewportWidth),
|
||||
}));
|
||||
});
|
||||
|
||||
constructor() {
|
||||
this.setLayoutOptions();
|
||||
|
||||
Reference in New Issue
Block a user