1
0
Fork 0

[react] fix: Path string style in Xray path component

See #264
This commit is contained in:
joostdecock 2025-05-03 12:47:24 +02:00
parent 41203f8b3f
commit 07eae0a9cd
2 changed files with 5 additions and 1 deletions

View file

@ -34,6 +34,10 @@ export const Highlight = ({
const preProps = {
className: `language-${language} hljs tw:text-base tw:lg:text-lg tw:whitespace-break-spaces tw:overflow-scroll tw:pr-4`,
// We have to force the background to override the ifm-pre-backround var
style: {
backgroundColor: 'var(--code-background-color)',
},
}
if (raw) preProps.dangerouslySetInnerHTML = { __html: raw }