🐛 Fix margin issue of PageHeader extra

close #17025
This commit is contained in:
afc163 2019-06-10 18:22:33 +08:00
parent e67270cd59
commit 16ed7273dd
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ const renderTitle = (prefixCls: string, props: PageHeaderProps) => {
const titlePrefixCls = `${prefixCls}-title-view`; const titlePrefixCls = `${prefixCls}-title-view`;
if (title || subTitle || tags || extra) { if (title || subTitle || tags || extra) {
return ( return (
<div className={`${prefixCls}-title-view`}> <div className={titlePrefixCls}>
{title && <span className={`${titlePrefixCls}-title`}>{title}</span>} {title && <span className={`${titlePrefixCls}-title`}>{title}</span>}
{subTitle && <span className={`${titlePrefixCls}-sub-title`}>{subTitle}</span>} {subTitle && <span className={`${titlePrefixCls}-sub-title`}>{subTitle}</span>}
{tags && <span className={`${titlePrefixCls}-tags`}>{tags}</span>} {tags && <span className={`${titlePrefixCls}-tags`}>{tags}</span>}

View File

@ -65,9 +65,9 @@
top: 16px; top: 16px;
right: @page-header-padding-horizontal; right: @page-header-padding-horizontal;
> * { > * {
margin-right: 8px; margin-left: 8px;
} }
> *:last-child { > *:first-child {
margin-right: 0; margin-right: 0;
} }
} }