Skip to content

Commit

Permalink
[docs] Remove HighlightedCode max-width (mui#43731)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Oct 16, 2024
1 parent 1c570c1 commit e3ec0c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions packages/mui-docs/src/HighlightedCode/HighlightedCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ const Pre = styled('pre')(({ theme }) => ({
margin: 0,
color: 'hsl(60deg 30% 96.08%)', // fallback color until Prism's theme is loaded
WebkitOverflowScrolling: 'touch', // iOS momentum scrolling.
maxWidth: 'calc(100vw - 32px)',
[theme.breakpoints.up('md')]: {
maxWidth: 'calc(100vw - 32px - 16px)',
},
'& code': {
// Avoid layout jump after hydration (style injected by Prism)
...theme.typography.caption,
Expand Down
4 changes: 0 additions & 4 deletions packages/mui-docs/src/MarkdownElement/MarkdownElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ const Root = styled('div')(
overflow: 'auto',
WebkitOverflowScrolling: 'touch',
fontSize: lightTheme.typography.pxToRem(13),
maxWidth: 'calc(100vw - 32px)',
maxHeight: '400px',
[lightTheme.breakpoints.up('md')]: {
maxWidth: 'calc(100vw - 32px - 16px)',
},
},
'& code': {
...lightTheme.typography.body2,
Expand Down

0 comments on commit e3ec0c7

Please sign in to comment.