revert: "feat(web): wasm justified layout" (#19226)

This commit is contained in:
Zack Pollard 2025-06-17 17:01:40 +01:00 committed by GitHub
parent 0684a3ada4
commit 4c69511225
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 145 additions and 106 deletions

View file

@ -1,7 +1,7 @@
import { AssetOrder } from '@immich/sdk';
import type { CommonLayoutOptions } from '$lib/utils/layout-utils';
import { getJustifiedLayoutFromAssets } from '$lib/utils/layout-utils';
import { getJustifiedLayoutFromAssets, getPosition } from '$lib/utils/layout-utils';
import { plainDateTimeCompare } from '$lib/utils/timeline-util';
import type { MonthGroup } from './month-group.svelte';
@ -153,7 +153,8 @@ export class DayGroup {
this.width = geometry.containerWidth;
this.height = assets.length === 0 ? 0 : geometry.containerHeight;
for (let i = 0; i < this.viewerAssets.length; i++) {
this.viewerAssets[i].position = geometry.getPosition(i);
const position = getPosition(geometry, i);
this.viewerAssets[i].position = position;
}
}