From 8707850997be21479c9a61d9a15d74f1fcbe5c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=96=E4=BB=A3=E7=A0=81=E7=9A=84?= <515343908@qq.com> Date: Mon, 17 Sep 2018 00:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=AF=AD=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当屏幕过小时(13.3寸),菜单过多时,会把语言切换按钮挤到下一行 --- src/components/TopNavHeader/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TopNavHeader/index.js b/src/components/TopNavHeader/index.js index a4a277e0..e20b17ef 100644 --- a/src/components/TopNavHeader/index.js +++ b/src/components/TopNavHeader/index.js @@ -9,7 +9,7 @@ export default class TopNavHeader extends PureComponent { super(props); this.state = { - maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4, + maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 26, }; } -- GitLab