mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(web): wasm justified layout (#19150)
* wasm justified layout * fix tests * redundant layout generation * raw position
This commit is contained in:
parent
8038ae1e7a
commit
bc062da11b
13 changed files with 106 additions and 145 deletions
|
|
@ -31,7 +31,7 @@ export const assetFactory = Sync.makeFactory<AssetResponseDto>({
|
|||
|
||||
export const timelineAssetFactory = Sync.makeFactory<TimelineAsset>({
|
||||
id: Sync.each(() => faker.string.uuid()),
|
||||
ratio: Sync.each(() => faker.number.int()),
|
||||
ratio: Sync.each((i) => 0.2 + ((i * 0.618_034) % 3.8)), // deterministic random float between 0.2 and 4.0
|
||||
ownerId: Sync.each(() => faker.string.uuid()),
|
||||
thumbhash: Sync.each(() => faker.string.alphanumeric(28)),
|
||||
localDateTime: Sync.each(() => fromISODateTimeUTCToObject(faker.date.past().toISOString())),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue