Commit 3708b6f9 authored by yaphet's avatar yaphet Committed by 陈帅

fix:小屏幕显示不完全 (#3726)

* 修复小屏幕显示不完全问题

屏幕尺寸小于1200时,顶部菜单右侧内容被遮挡

* Update index.js

* 格式化代码
parent 5684b5d5
......@@ -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,
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment