Skip to content

Commit d49feae

Browse files
committed
💄(frontend) update callout styles
Updated the callout block styles, centered the emoji and aligned the text to be in the center of the block.
1 parent c534fed commit d49feae

File tree

1 file changed

+12
-1
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks

1 file changed

+12
-1
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/CalloutBlock.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ export const CalloutBlock = createReactBlockSpec(
7070
}
7171
`}
7272
$align="center"
73+
$justify="center"
7374
$height="28px"
7475
$width="28px"
76+
$minWidth="28px"
7577
$radius="4px"
7678
>
7779
{block.props.emoji}
@@ -85,7 +87,16 @@ export const CalloutBlock = createReactBlockSpec(
8587
onEmojiSelect={onEmojiSelect}
8688
/>
8789
)}
88-
<Box as="p" className="inline-content" ref={contentRef} />
90+
<Box
91+
as="p"
92+
className="inline-content"
93+
ref={contentRef}
94+
$css={css`
95+
& > div {
96+
padding-top: 2px;
97+
}
98+
`}
99+
/>
89100
</Box>
90101
);
91102
},

0 commit comments

Comments
 (0)