Skip to content

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.

feat: repair grid border in selection (#206)

MingLIang Wangdbd16f33a971
diff --git a/libs/components/editor-blocks/src/blocks/grid/Grid.tsx b/libs/components/editor-blocks/src/blocks/grid/Grid.tsx
index 79ab22d0ad..822270f495 100644
--- a/libs/components/editor-blocks/src/blocks/grid/Grid.tsx
+++ b/libs/components/editor-blocks/src/blocks/grid/Grid.tsx
@@ -261,7 +261,7 @@ const GridContainer = styled('div')<{
display: 'flex',
alignItems: 'stretch',
borderRadius: '10px',
- border: '1px solid #FFF',
+ border: '1px solid transparent',
minWidth: `${gridItemMinWidth}%`,
[`&:hover .${GRID_ITEM_CONTENT_CLASS_NAME}`]: {
borderColor: theme.affine.palette.borderColor,
diff --git a/libs/components/editor-core/src/editor/selection/selection.ts b/libs/components/editor-core/src/editor/selection/selection.ts
index b66d1b5fd6..30e7f4efdd 100644
--- a/libs/components/editor-core/src/editor/selection/selection.ts
+++ b/libs/components/editor-core/src/editor/selection/selection.ts
@@ -77,9 +77,6 @@ export class SelectionManager implements VirgoSelection {
type: 'None',
info: null,
};
- // IMP: to delete
- // @ts-ignore
- window['selectionManager'] = this;
this._initWindowSelectionChangeListen();
}