Skip to content

Commit f18c2df

Browse files
committed
fix: 添加首个子元素的上边距样式以优化布局
1 parent c654b94 commit f18c2df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/MarkdownEditor/editor/style.ts

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
112112
lineHeight: '1.5',
113113
marginTop: '0',
114114
marginBottom: '0.5em',
115+
'&:first-child': {
116+
marginTop: 0,
117+
},
115118
'&:last-child': {
116119
marginBottom: 0,
117120
paddingBottom: 0,

0 commit comments

Comments
 (0)