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