Skip to content

Commit

Permalink
调整Markdown编辑器标题字体大小以改善可读性
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 3, 2025
1 parent e225cda commit 4240ac8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MarkdownEditor/editor/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
},
},
h1: {
fontSize: '1.875em',
fontSize: '1.775em',
marginTop: '1.2em',
fontWeight: 700,
'&:first-child': {
Expand All @@ -150,18 +150,18 @@ const genStyle: GenerateStyle<ChatTokenType> = (token) => {
},
h2: {
fontWeight: 600,
fontSize: '1.5em',
fontSize: '1.4em',
marginTop: '1em',
marginBottom: '1em',
},
h3: {
fontWeight: 600,
fontSize: '1.4em',
fontSize: '1.3em',
marginTop: '0.8em',
},
h4: {
fontWeight: 500,
fontSize: '1.3em',
fontSize: '1.2em',
marginTop: '0.7em',
lineHeight: 1.2,
},
Expand Down

0 comments on commit 4240ac8

Please sign in to comment.