Merge pull request #17026 from ant-design/fix-page-header-extra-style

fix(PageHeader): abnormal margin issue of PageHeader extra
This commit is contained in:
偏右 2019-06-10 18:40:41 +08:00 committed by GitHub
commit 1340ba8261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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`;
if (title || subTitle || tags || extra) {
return (
<div className={`${prefixCls}-title-view`}>
<div className={titlePrefixCls}>
{title && <span className={`${titlePrefixCls}-title`}>{title}</span>}
{subTitle && <span className={`${titlePrefixCls}-sub-title`}>{subTitle}</span>}
{tags && <span className={`${titlePrefixCls}-tags`}>{tags}</span>}

View File

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