mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update masonry scale
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user