fix(editor): gap between block

This commit is contained in:
austaras
2022-08-11 19:00:52 +08:00
parent 6060a81cc3
commit 11c7e3ad83
5 changed files with 11 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ export const BlockPendantProvider: FC<PropsWithChildren<BlockTagProps>> = ({
};
export const LINE_GAP = 16;
const TAG_GAP = 4;
export const TAG_GAP = 4;
const StyledTriggerLine = styled('div')({
padding: `${TAG_GAP}px 0`,
@@ -63,7 +63,7 @@ const StyledTriggerLine = styled('div')({
const Container = styled('div')({
position: 'relative',
paddingBottom: `${LINE_GAP - TAG_GAP * 2}px`,
padding: `${TAG_GAP * 2}px 0 ${LINE_GAP - TAG_GAP * 4}px 0`,
'&:hover': {
[StyledTriggerLine.toString()]: {
'&::before': {