mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Fix diagrams in Dark mode. Fixes #520
This commit is contained in:
@@ -182,6 +182,10 @@ function RenderCodeImpl(props: RenderCodeImplProps) {
|
||||
minWidth: 160,
|
||||
'&:hover > .overlay-buttons': { opacity: 1 },
|
||||
...(props.sx || {}),
|
||||
// fix for SVG diagrams over dark mode: https://github.com/enricoros/big-AGI/issues/520
|
||||
'[data-joy-color-scheme="dark"] &': (renderPlantUML || renderMermaid) ? {
|
||||
backgroundColor: 'neutral.300',
|
||||
} : {},
|
||||
}}>
|
||||
|
||||
{/* Markdown Title (File/Type) */}
|
||||
|
||||
Reference in New Issue
Block a user