From 16ed7273dd866ff8c696e27f5f7f8c2ae11e663f Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 10 Jun 2019 18:22:33 +0800 Subject: [PATCH] :bug: Fix margin issue of PageHeader extra close #17025 --- components/page-header/index.tsx | 2 +- components/page-header/style/index.less | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/page-header/index.tsx b/components/page-header/index.tsx index f79d526c6b..afc5d14c5e 100644 --- a/components/page-header/index.tsx +++ b/components/page-header/index.tsx @@ -70,7 +70,7 @@ const renderTitle = (prefixCls: string, props: PageHeaderProps) => { const titlePrefixCls = `${prefixCls}-title-view`; if (title || subTitle || tags || extra) { return ( -
+
{title && {title}} {subTitle && {subTitle}} {tags && {tags}} diff --git a/components/page-header/style/index.less b/components/page-header/style/index.less index 82535759c0..9180fe47b1 100644 --- a/components/page-header/style/index.less +++ b/components/page-header/style/index.less @@ -65,9 +65,9 @@ top: 16px; right: @page-header-padding-horizontal; > * { - margin-right: 8px; + margin-left: 8px; } - > *:last-child { + > *:first-child { margin-right: 0; } }