mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 21:35:52 +08:00
fix: remove useless border and border radius for code block
This commit is contained in:
parent
db7a4a737f
commit
4fce9f8986
@ -152,9 +152,7 @@ const CodeBlock: React.FC<CodeBlockProps> = ({ children, className }) => {
|
|||||||
isCodeWrappable={codeWrappable}
|
isCodeWrappable={codeWrappable}
|
||||||
// dangerouslySetInnerHTML={{ __html: html }}
|
// dangerouslySetInnerHTML={{ __html: html }}
|
||||||
style={{
|
style={{
|
||||||
border: '0.5px solid var(--color-code-background)',
|
padding: '1px',
|
||||||
borderTopLeftRadius: 0,
|
|
||||||
borderTopRightRadius: 0,
|
|
||||||
marginTop: 0,
|
marginTop: 0,
|
||||||
fontSize: fontSize - 1,
|
fontSize: fontSize - 1,
|
||||||
maxHeight: codeCollapsible && !isExpanded ? '350px' : 'none',
|
maxHeight: codeCollapsible && !isExpanded ? '350px' : 'none',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user