Skip to content

Commit

Permalink
fix(gatsby-theme-docz): fix horizontal code overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer committed Dec 3, 2019
1 parent b55af24 commit a0b7823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/gatsby-theme-docz/src/components/Code/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Code = ({ children, className: outerClassName }) => {
{({ className, style, tokens, getLineProps, getTokenProps }) => (
<Styled.pre
className={`${outerClassName || ''} ${className}`}
style={style}
style={{ ...style, overflowX: 'auto' }}
data-testid="code"
>
{tokens.map((line, i) => (
Expand Down

0 comments on commit a0b7823

Please sign in to comment.