feat(web): responsive date group header height ()

* feat: responsive date group header height

* update tests

* feat(web): improve perf when changing mobile orientation ()

fix: improve perf when changing mobile orientation
This commit is contained in:
Min Idzelis 2025-04-29 13:59:06 -04:00 committed by GitHub
parent 07290580a6
commit 0e4cf9ac57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 55 additions and 20 deletions
web/src/lib/components/photos-page

View file

@ -88,7 +88,16 @@
const usingMobileDevice = $derived(mobileDevice.pointerCoarse);
$effect(() => {
assetStore.rowHeight = maxMd ? 100 : 235;
const layoutOptions = maxMd
? {
rowHeight: 100,
headerHeight: 32,
}
: {
rowHeight: 235,
headerHeight: 48,
};
assetStore.setLayoutOptions(layoutOptions);
});
const scrollTo = (top: number) => {