Prompt Syntax Highlighter font sans-serif
parent
0a9cefa674
commit
e697df2ef7
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue