diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte index 9ccb2b7182e7d7..e988bdf33721f8 100644 --- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -137,6 +137,9 @@ $: isAllFavorite = [...$selectedAssets].every((asset) => asset.isFavorite); $: isAllArchived = [...$selectedAssets].every((asset) => asset.isArchived); $: { + if (globalWidth === 0) { + break $; + } assetGridWidth = isShowActivity ? globalWidth - (globalWidth < 768 ? 360 : 460) : globalWidth; } $: showActivityStatus =