feat(web, server): Implement justified layout for AssetGrid (#2666)

* Implement justified layout for timeline

* Add withoutThumbs field to GetTimelineLayotDto

* Back to rough estimation of initial buckets height

* Remove getTimelineLayout endpoint

* Estimate rough viewport height better

* Fix shift/jump issues while scrolling up

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Sergey Kondrikov
2023-06-08 18:22:45 +03:00
committed by GitHub
parent 8ebac41318
commit 5764bf16f3
11 changed files with 172 additions and 45 deletions

View File

@@ -1,5 +1,12 @@
import type { AssetResponseDto } from '@api';
export enum BucketPosition {
Above = 'above',
Below = 'below',
Visible = 'visible',
Unknown = 'unknown'
}
export class AssetBucket {
/**
* The DOM height of the bucket in pixel
@@ -9,6 +16,7 @@ export class AssetBucket {
bucketDate!: string;
assets!: AssetResponseDto[];
cancelToken!: AbortController;
position!: BucketPosition;
}
export class AssetGridState {