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.

Merge pull request #195 from toeverything/fix-gap

DarkSkyb2bac25a92a8
diff --cc libs/components/editor-core/src/block-pendant/BlockPendantProvider.tsx
index 031aa5e3a3,71b28ead6e..70c56af04c
--- a/libs/components/editor-core/src/block-pendant/BlockPendantProvider.tsx
+++ b/libs/components/editor-core/src/block-pendant/BlockPendantProvider.tsx
@@@ -78,23 -60,17 +78,23 @@@ const StyledTriggerLine = styled('div')
transition: 'width .3s',
},
});
-
+const StyledPendantContainer = styled('div')({
+ width: '100px',
+ '&:hover': {
+ [`${StyledTriggerLine}`]: {
+ '&::after': {
+ width: '100%',
+ },
+ },
+ },
+});
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()]: {
+ [`${StyledTriggerLine}`]: {
'&::before': {
- display: 'flex',
- },
- '&::after': {
- width: '100%',
+ opacity: '1',
},
},
},