From 20d3bd7c3a5ab92a1405a0363dc9fde9403273e2 Mon Sep 17 00:00:00 2001 From: O2 Date: Sat, 6 Oct 2018 11:17:54 +0800 Subject: [PATCH] fix: (#2475, #2445) input box-shadow for login page (#2476) * fix: (#2474, #2445) input box-shadow for login page * fix: (#2475, #2445) input box-shadow for login page --- .eslintrc.js | 1 + src/components/Login/index.less | 2 +- src/components/SiderMenu/SiderMenu.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index f8d67ff9..d92c54f4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -24,6 +24,7 @@ module.exports = { 'jsx-a11y/click-events-have-key-events': 0, 'jsx-a11y/no-static-element-interactions': 0, 'jsx-a11y/anchor-is-valid': 0, + 'linebreak-style': 0, }, settings: { polyfills: ['fetch', 'promises', 'url'], diff --git a/src/components/Login/index.less b/src/components/Login/index.less index e94adc47..995b68d2 100644 --- a/src/components/Login/index.less +++ b/src/components/Login/index.less @@ -9,7 +9,7 @@ } .ant-form-item { - margin-bottom: 24px; + margin: 0 2px 24px; } } diff --git a/src/components/SiderMenu/SiderMenu.js b/src/components/SiderMenu/SiderMenu.js index e457f2f5..2d366b9b 100644 --- a/src/components/SiderMenu/SiderMenu.js +++ b/src/components/SiderMenu/SiderMenu.js @@ -118,7 +118,7 @@ export default class SiderMenu extends PureComponent { mode="inline" handleOpenChange={this.handleOpenChange} onOpenChange={this.handleOpenChange} - style={{ padding: '16px 0', width: '100%' }} + style={{ padding: '16px 0', width: '100%', overflowX: 'hidden' }} {...defaultProps} /> -- GitLab