Commit 36d458fe authored by Johnny's avatar Johnny

chore: update masonry scale

parent 7592e5fe
...@@ -36,7 +36,7 @@ const MasonryView = (props: Props) => { ...@@ -36,7 +36,7 @@ const MasonryView = (props: Props) => {
const containerWidth = containerRef.current.offsetWidth; const containerWidth = containerRef.current.offsetWidth;
const scale = containerWidth / MINIMUM_MEMO_VIEWPORT_WIDTH; const scale = containerWidth / MINIMUM_MEMO_VIEWPORT_WIDTH;
setState({ setState({
columns: scale > 2 ? Math.floor(scale) : 1, columns: scale >= 2 ? Math.round(scale) : 1,
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment