Prompt Syntax Highlighter font sans-serif

pull/458/head
kaalibro 2023-11-18 00:30:34 +06:00
parent 0a9cefa674
commit e697df2ef7
No known key found for this signature in database
2 changed files with 37 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@ -10,8 +10,8 @@ export const useStyles = createStyles(({ css, token, cx, stylish, prefixCls }) =
padding: 8px; padding: 8px;
pre { pre {
font-family: ${token.fontFamilyCode} !important; font-family: var(--font) !important;
font-size: 13px !important; font-size: var(--input-text-size) !important;
line-height: 1.5 !important; line-height: 1.5 !important;
color: ${token.colorSuccess}; color: ${token.colorSuccess};
text-overflow: ellipsis !important; text-overflow: ellipsis !important;
@ -45,13 +45,18 @@ export const useStyles = createStyles(({ css, token, cx, stylish, prefixCls }) =
`${prefix}-shiki`, `${prefix}-shiki`,
css` css`
margin: 0; margin: 0;
padding: 0; padding: var(--input-border-width);
.shiki { .shiki {
overflow-x: auto; overflow-x: auto;
margin: 0; margin: 0;
padding: 0; padding: 0;
background: none !important; background: none !important;
code,
code span {
font-family: var(--font) !important;
}
} }
`, `,
), ),