mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
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:
commit
1340ba8261
@ -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>}
|
||||
|
@ -65,9 +65,9 @@
|
||||
top: 16px;
|
||||
right: @page-header-padding-horizontal;
|
||||
> * {
|
||||
margin-right: 8px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
> *:last-child {
|
||||
> *:first-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user