Skip to content

Commit

Permalink
[docs] Fix layout regression (#27266)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Jul 14, 2021
1 parent 3cd11c0 commit 8bba02a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/src/modules/components/AppLayoutDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import AdManager from 'docs/src/modules/components/AdManager';
import AdGuest from 'docs/src/modules/components/AdGuest';
import AppLayoutDocsFooter from 'docs/src/modules/components/AppLayoutDocsFooter';

const TOC_WIDTH = 175;
const NAV_WIDTH = 240;

const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
Expand All @@ -39,7 +42,10 @@ const useStyles = makeStyles((theme) => ({
},
toc: {
[theme.breakpoints.up('sm')]: {
width: 'calc(100% - 175px)',
width: `calc(100% - ${TOC_WIDTH}px)`,
},
[theme.breakpoints.up('lg')]: {
width: `calc(100% - ${TOC_WIDTH}px - ${NAV_WIDTH}px)`,
},
},
disableToc: {
Expand Down

0 comments on commit 8bba02a

Please sign in to comment.