From 36d458fe885e7fdd3c85c76b48ad5cbc9413cc4b Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 3 Mar 2025 22:41:18 +0800 Subject: [PATCH] chore: update masonry scale --- web/src/components/MasonryView/MasonryView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MasonryView/MasonryView.tsx b/web/src/components/MasonryView/MasonryView.tsx index df5a382d..a579f5c6 100644 --- a/web/src/components/MasonryView/MasonryView.tsx +++ b/web/src/components/MasonryView/MasonryView.tsx @@ -36,7 +36,7 @@ const MasonryView = (props: Props) => { const containerWidth = containerRef.current.offsetWidth; const scale = containerWidth / MINIMUM_MEMO_VIEWPORT_WIDTH; setState({ - columns: scale > 2 ? Math.floor(scale) : 1, + columns: scale >= 2 ? Math.round(scale) : 1, }); };