Skip to content

Commit

Permalink
Bug fix for #9186
Browse files Browse the repository at this point in the history
  • Loading branch information
kartykp committed Nov 15, 2024
1 parent 5c9401d commit ec7fab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mdx/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const MonoText = props => <Text sx={{fontFamily: 'mono', fontSize: 1}} {...props

const CodeBlock = ({children, code, className, style}) => (
<Box
role="presentation"
sx={{
// Make <pre> adjust to the width of the container
// https://stackoverflow.com/a/14406386
Expand All @@ -64,6 +65,7 @@ const CodeBlock = ({children, code, className, style}) => (
}}
>
<Box
role="presentation"
style={style}
sx={{
...(code ? {display: 'flex', justifyContent: 'space-between', flexDirection: 'row-reverse'} : {}),
Expand Down

0 comments on commit ec7fab8

Please sign in to comment.