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:
Min Idzelis 2025-03-19 11:57:44 -04:00 committed by GitHub
parent 9398b0d4b3
commit 7075c5b393
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 4 deletions

View file

@ -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,
});
});