diff --git a/src/components/TopNavHeader/index.js b/src/components/TopNavHeader/index.js index 2d0e06561e0ef053594f157cd428b68874cc951d..0b6440e6d40f147fc083daf4fb9ce9a21eb60df0 100644 --- a/src/components/TopNavHeader/index.js +++ b/src/components/TopNavHeader/index.js @@ -13,7 +13,11 @@ export default class TopNavHeader extends PureComponent { static getDerivedStateFromProps(props) { return { - maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 280 - 165 - 40, + maxWidth: + (props.contentWidth === 'Fixed' && window.innerWidth > 1200 ? 1200 : window.innerWidth) - + 280 - + 120 - + 40, }; }