Skip to content

Commit 27232bd

Browse files
committed
feat: 调整Markdown编辑器样式以增强可读性和一致性
1 parent 3aced8c commit 27232bd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/MarkdownEditor/demos/preview.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const defaultValue = `<!-- {"MarkdownType": "report", "id": "8", "section_ids":
5858
5959
[腾讯官网](https://www.zhihu.com/question/665438199/answer/3625311124 "腾讯官网")
6060
61+
6162
## Description
6263
6364

src/MarkdownEditor/editor/elements/card/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const WarpCard = observer((props: RenderElementProps) => {
1111
style={{
1212
display: 'flex',
1313
gap: 1,
14+
maxWidth: '100%',
1415
}}
1516
>
1617
{props.children}

src/MarkdownEditor/editor/elements/description/style.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
1313
border: '1px solid rgb(232, 232, 232)',
1414
table: {
1515
'& th': {
16-
padding: '12px 20px',
16+
padding: '0.8em 1.2em',
1717
textAlign: 'left',
1818
fontWeight: 500,
19+
backgroundColor: 'rgb(229 231 235 / 0.5)',
1920
border: '1px solid rgb(232, 232, 232)',
20-
borderRadius: '0.5em',
2121
},
2222
'& td': {
2323
padding: '12px 20px',

0 commit comments

Comments
 (0)