From b0567ad904b5d5c2b1428a4450b21b1489dbc7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 31 Aug 2018 17:33:36 +0800 Subject: [PATCH] Fix the problem that the icon becomes a block element --- src/components/GlobalHeader/index.js | 9 ++++----- src/components/GlobalHeader/index.less | 5 ++--- src/components/TopNavHeader/index.js | 1 - 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/GlobalHeader/index.js b/src/components/GlobalHeader/index.js index 83c161be..3b847548 100644 --- a/src/components/GlobalHeader/index.js +++ b/src/components/GlobalHeader/index.js @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react'; -import { Icon, Divider } from 'antd'; +import { Icon } from 'antd'; import Link from 'umi/link'; import Debounce from 'lodash-decorators/debounce'; import styles from './index.less'; @@ -26,12 +26,11 @@ export default class GlobalHeader extends PureComponent { const { collapsed, isMobile, logo } = this.props; return (
- {isMobile && [ + {isMobile && ( logo - , - , - ]} + + )}
-- GitLab