mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
Remove empty space in title section on admin pages (#1490)
This commit is contained in:
@@ -94,7 +94,7 @@ export default class Page extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderPageHeader() {
|
renderPageHeader() {
|
||||||
const { error, afterTitle, subtitle, children } = this.props;
|
const { error, afterTitle, title, subtitle, children } = this.props;
|
||||||
|
|
||||||
let pageActions = null;
|
let pageActions = null;
|
||||||
let pageActionsExists = false;
|
let pageActionsExists = false;
|
||||||
@@ -114,6 +114,7 @@ export default class Page extends React.Component<Props> {
|
|||||||
});
|
});
|
||||||
const underline = pageActionsExists ? <hr className="header-with-actions" /> : null;
|
const underline = pageActionsExists ? <hr className="header-with-actions" /> : null;
|
||||||
|
|
||||||
|
if (title || subtitle) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="columns">
|
<div className="columns">
|
||||||
@@ -130,6 +131,8 @@ export default class Page extends React.Component<Props> {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
renderContent() {
|
renderContent() {
|
||||||
const { loading, children, showContentOnError, error } = this.props;
|
const { loading, children, showContentOnError, error } = this.props;
|
||||||
|
|||||||
Reference in New Issue
Block a user