Skip to content

Commit

Permalink
feat: 调整Markdown编辑器样式以增强可读性和一致性
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 16, 2025
1 parent 3aced8c commit 27232bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/MarkdownEditor/demos/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const defaultValue = `<!-- {"MarkdownType": "report", "id": "8", "section_ids":
[腾讯官网](https://www.zhihu.com/question/665438199/answer/3625311124 "腾讯官网")
## Description
Expand Down
1 change: 1 addition & 0 deletions src/MarkdownEditor/editor/elements/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const WarpCard = observer((props: RenderElementProps) => {
style={{
display: 'flex',
gap: 1,
maxWidth: '100%',
}}
>
{props.children}
Expand Down
4 changes: 2 additions & 2 deletions src/MarkdownEditor/editor/elements/description/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
border: '1px solid rgb(232, 232, 232)',
table: {
'& th': {
padding: '12px 20px',
padding: '0.8em 1.2em',
textAlign: 'left',
fontWeight: 500,
backgroundColor: 'rgb(229 231 235 / 0.5)',
border: '1px solid rgb(232, 232, 232)',
borderRadius: '0.5em',
},
'& td': {
padding: '12px 20px',
Expand Down

1 comment on commit 27232bd

@vercel
Copy link

@vercel vercel bot commented on 27232bd Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.