mirror of
https://github.com/immich-app/immich.git
synced 2025-02-18 01:24:26 -05:00
fix: typo
This commit is contained in:
parent
27df3db944
commit
5540981c11
1 changed files with 3 additions and 3 deletions
|
@ -465,7 +465,7 @@ export class AssetStore {
|
||||||
const viewportWidth = this.viewport.width;
|
const viewportWidth = this.viewport.width;
|
||||||
if (!bucket.isBucketHeightActual) {
|
if (!bucket.isBucketHeightActual) {
|
||||||
const unwrappedWidth = (3 / 2) * bucket.bucketCount * THUMBNAIL_HEIGHT * (7 / 10);
|
const unwrappedWidth = (3 / 2) * bucket.bucketCount * THUMBNAIL_HEIGHT * (7 / 10);
|
||||||
const rows = Math.ceil(unwrappedWidth / viewPortWidth);
|
const rows = Math.ceil(unwrappedWidth / viewportWidth);
|
||||||
const height = 51 + rows * THUMBNAIL_HEIGHT;
|
const height = 51 + rows * THUMBNAIL_HEIGHT;
|
||||||
bucket.bucketHeight = height;
|
bucket.bucketHeight = height;
|
||||||
}
|
}
|
||||||
|
@ -474,12 +474,12 @@ export class AssetStore {
|
||||||
spacing: 2,
|
spacing: 2,
|
||||||
heightTolerance: 0.15,
|
heightTolerance: 0.15,
|
||||||
rowHeight: 235,
|
rowHeight: 235,
|
||||||
rowWidth: Math.floor(viewPortWidth),
|
rowWidth: Math.floor(viewportWidth),
|
||||||
};
|
};
|
||||||
for (const assetGroup of bucket.dateGroups) {
|
for (const assetGroup of bucket.dateGroups) {
|
||||||
if (!assetGroup.heightActual) {
|
if (!assetGroup.heightActual) {
|
||||||
const unwrappedWidth = (3 / 2) * assetGroup.assets.length * THUMBNAIL_HEIGHT * (7 / 10);
|
const unwrappedWidth = (3 / 2) * assetGroup.assets.length * THUMBNAIL_HEIGHT * (7 / 10);
|
||||||
const rows = Math.ceil(unwrappedWidth / viewPortWidth);
|
const rows = Math.ceil(unwrappedWidth / viewportWidth);
|
||||||
const height = rows * THUMBNAIL_HEIGHT;
|
const height = rows * THUMBNAIL_HEIGHT;
|
||||||
assetGroup.height = height;
|
assetGroup.height = height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue