mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-01 01:30:51 +08:00
refactor: transparent border for code blocks
This commit is contained in:
parent
7dac8cee64
commit
cd02ee3125
@ -228,7 +228,7 @@ const ContentContainer = styled.div<{
|
||||
$isCodeWrappable: boolean
|
||||
}>`
|
||||
position: relative;
|
||||
border: 0.5px solid var(--color-code-background);
|
||||
border: 0.5px solid transparent;
|
||||
border-radius: 5px;
|
||||
margin-top: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
|
||||
@ -219,7 +219,7 @@ const CodeEditor = ({ children, language, onSave, onChange, maxHeight, options,
|
||||
fontSize: `${fontSize - 1}px`,
|
||||
overflow: collapsible && !isExpanded ? 'auto' : 'visible',
|
||||
position: 'relative',
|
||||
border: '0.5px solid var(--color-code-background)',
|
||||
border: '0.5px solid transparent',
|
||||
borderRadius: '5px',
|
||||
marginTop: 0,
|
||||
...style
|
||||
|
||||
Loading…
Reference in New Issue
Block a user