There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(editor): prevent white edges in grid background by rounding grid gap (#11454)
L-Sunf2865c7bb06f
diff --git a/blocksuite/affine/blocks/block-surface/src/utils/get-bg-grip-gap.ts b/blocksuite/affine/blocks/block-surface/src/utils/get-bg-grip-gap.tsindex 69e0c3ec9b..f734f91b2d 100644--- a/blocksuite/affine/blocks/block-surface/src/utils/get-bg-grip-gap.ts+++ b/blocksuite/affine/blocks/block-surface/src/utils/get-bg-grip-gap.ts@@ -6,5 +6,5 @@ export function getBgGridGap(zoom: number) {const step = zoom < 0.5 ? 2 : 1 / (Math.floor(zoom) || 1);const gap = clamp(20 * step * zoom, GRID_GAP_MIN, GRID_GAP_MAX);- return gap;+ return Math.round(gap);}