Skip to content

Commit

Permalink
fix(web): skip calculate assetGridWidth if globalWidth is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
duckimann committed Nov 7, 2024
1 parent 564449a commit 9ee1ef2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 9ee1ef2

Please sign in to comment.