Commit 87c14224 authored by 卖代码的's avatar 卖代码的 Committed by 偏右

Update index.js

算错了。。。。。
parent 87078509
...@@ -9,13 +9,13 @@ export default class TopNavHeader extends PureComponent { ...@@ -9,13 +9,13 @@ export default class TopNavHeader extends PureComponent {
super(props); super(props);
this.state = { this.state = {
maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 26, maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 36,
}; };
} }
static getDerivedStateFromProps(props) { static getDerivedStateFromProps(props) {
return { return {
maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4, maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 36,
}; };
} }
......
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