mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
added underline to header part of page when buttonactions set
This commit is contained in:
@@ -39,21 +39,21 @@ class Page extends React.Component<Props> {
|
|||||||
pageActionsExists = true;
|
pageActionsExists = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
let underline = pageActionsExists ? <hr className="header-with-actions" /> : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<>
|
||||||
className={
|
<div className="columns">
|
||||||
pageActionsExists ? "columns page-header-with-actions" : "columns"
|
<div className="column">
|
||||||
}
|
<Title title={title} />
|
||||||
>
|
<Subtitle subtitle={subtitle} />
|
||||||
<div className="column">
|
</div>
|
||||||
<Title title={title} />
|
<div className="column is-two-fifths">
|
||||||
<Subtitle subtitle={subtitle} />
|
<div className="is-pulled-right">{content}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="column is-two-fifths">
|
{underline}
|
||||||
<div className="is-pulled-right">{content}</div>
|
</>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,9 +42,11 @@ $info: $blue;
|
|||||||
min-height: calc(100vh - 260px);
|
min-height: calc(100vh - 260px);
|
||||||
}
|
}
|
||||||
|
|
||||||
// top section when pageactions set
|
// shown in top section when pageactions set
|
||||||
.page-header-with-actions {
|
hr.header-with-actions {
|
||||||
border-bottom: 1px solid $primary;
|
height: 1px;
|
||||||
|
margin-top: -10px;
|
||||||
|
background-color: $primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
|
|||||||
Reference in New Issue
Block a user