mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-09 22:31:08 +00:00
fix: adjust font size of code elements within headings to ensure consistent styling
Apply :has() selector to make code elements inherit font size from their heading parents. This ensures visual consistency in markdown headings containing code blocks.
This commit is contained in:
parent
43a36c1a0a
commit
1235db6c49
1 changed files with 4 additions and 0 deletions
|
|
@ -63,6 +63,10 @@ const StyledMarkdown = styled.div`
|
|||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
:where(h1, h2, h3, h4, h5, h6):has(code) code {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
pre > code {
|
||||
.hljs-deletion {
|
||||
background-color: var(--vscode-diffEditor-removedTextBackground);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue