mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(web): make asset grid row height responsive (#16970)
* feat(web): max grid row height responsive * also gallery-viewer * lint
This commit is contained in:
parent
9398b0d4b3
commit
7075c5b393
2 changed files with 17 additions and 4 deletions
|
|
@ -59,11 +59,14 @@
|
|||
const _assets = assets;
|
||||
updateSlidingWindow();
|
||||
|
||||
const rowWidth = Math.floor(viewport.width);
|
||||
const rowHeight = rowWidth < 850 ? 100 : 235;
|
||||
|
||||
geometry = getJustifiedLayoutFromAssets(_assets, {
|
||||
spacing: 2,
|
||||
heightTolerance: 0.15,
|
||||
rowHeight: 235,
|
||||
rowWidth: Math.floor(viewport.width),
|
||||
rowHeight,
|
||||
rowWidth,
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue