Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update masonry scale

Johnny36d458fe885e
diff --git a/web/src/components/MasonryView/MasonryView.tsx b/web/src/components/MasonryView/MasonryView.tsx
index df5a382d1..a579f5c6a 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,
});
};