fix: remove useless border and border radius for code block

This commit is contained in:
Konv Suu 2025-05-08 23:02:21 +08:00 committed by 亢奋猫
parent 416a5ebcc6
commit 685ea0e297

View File

@ -152,9 +152,7 @@ const CodeBlock: React.FC<CodeBlockProps> = ({ children, className }) => {
isCodeWrappable={codeWrappable}
// dangerouslySetInnerHTML={{ __html: html }}
style={{
border: '0.5px solid var(--color-code-background)',
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
padding: '1px',
marginTop: 0,
fontSize: fontSize - 1,
maxHeight: codeCollapsible && !isExpanded ? '350px' : 'none',