Merge pull request #195 from toeverything/fix-gap

fix(editor): gap between block
This commit is contained in:
DarkSky
2022-08-11 21:13:37 +08:00
committed by GitHub
5 changed files with 11 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
import {
addNewGroup,
LINE_GAP,
RecastScene,
TAG_GAP,
useCurrentView,
useOnSelect,
} from '@toeverything/components/editor-core';
@@ -61,7 +63,7 @@ const GroupContainer = styled('div')<{ isSelect?: boolean }>(
({ isSelect, theme }) => ({
background: theme.affine.palette.white,
border: '2px solid rgba(236,241,251,.5)',
padding: `15px 16px 0 16px`,
padding: `15px 16px ${LINE_GAP - TAG_GAP * 2}px 16px`,
borderRadius: '10px',
...(isSelect
? {

View File

@@ -27,5 +27,6 @@ export const BlockContainer: FC<BlockContainerProps> = function ({
export const Container = styled('div')<{ selected: boolean }>(
({ selected, theme }) => ({
backgroundColor: selected ? theme.affine.palette.textSelected : '',
marginBottom: '2px',
})
);