Skip to content

Commit

Permalink
fix(docz-theme-default): add overflow config on Pre component (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck authored Jul 16, 2018
1 parent f892605 commit 9d4ce59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions packages/docz-theme-default/src/components/ui/Pre.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import prism from 'prismjs'
import styled, { cx } from 'react-emotion'

const PreStyled = styled('pre')`
overflow-y: hidden;
border: 1px solid ${p => p.theme.colors.border};
margin: 2em 0;
border-radius: 5px;
Expand Down
5 changes: 0 additions & 5 deletions packages/docz-theme-default/src/components/ui/Render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ const Code = styled('div')`
& pre[class*='language-'] {
margin: 0;
border-radius: 0 0 5px 5px;
${p =>
p.theme.mq({
overflowY: ['hidden', 'hidden', 'hidden', 'initial'],
})};
}
`

Expand Down

0 comments on commit 9d4ce59

Please sign in to comment.