mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 12:00:42 +09: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:
@@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user