diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.element.ts
index e104718e82..c608c81295 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/core/components/body-layout/body-layout.element.ts
@@ -39,6 +39,9 @@ export class UmbBodyLayoutElement extends LitElement {
@state()
private _headerSlotHasChildren = false;
+ @state()
+ private _navigationSlotHasChildren = false;
+
@state()
private _tabsSlotHasChildren = false;
@@ -81,28 +84,37 @@ export class UmbBodyLayoutElement extends LitElement {
style="display: ${this.headline ||
this._headerSlotHasChildren ||
this._tabsSlotHasChildren ||
- this._actionsMenuSlotHasChildren
+ this._actionsMenuSlotHasChildren ||
+ this._navigationSlotHasChildren
? ''
: 'none'}">
${this.headline ? html`
${this.headline}
` : nothing}
{
this._tabsSlotHasChildren = this.#hasNodes(e);
}}>
+
+ {
+ this._actionsMenuSlotHasChildren = this.#hasNodes(e);
+ }}>
@@ -170,15 +182,30 @@ export class UmbBodyLayoutElement extends LitElement {
box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.3);
}
+ #header-slot,
+ #tabs-slot,
+ #action-menu-slot,
+ #navigation-slot {
+ display: flex;
+ height: 100%;
+ align-items: center;
+ }
+
+ #header-slot {
+ padding: 0 var(--uui-size-layout-1);
+ flex-grow: 1;
+ }
+
+ #navigation-slot,
+ #tabs-slot {
+ margin-left: auto;
+ }
+
#headline {
display: block;
margin: 0 var(--uui-size-layout-1);
}
- #tabs {
- margin-left: auto;
- }
-
#main {
display: block;
flex: 1;
diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/section-views.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/section-views.element.ts
index 37fd268bda..9b53b1d1a4 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/section-views.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/section-views.element.ts
@@ -119,59 +119,61 @@ export class UmbSectionViewsElement extends UmbLitElement {
}
render() {
- return html`
- ${this._routes.length > 0
- ? html`
-
-
- {
- this._routerPath = event.target.absoluteRouterPath;
- }}
- @change=${(event: UmbRouterSlotChangeEvent) => {
- this._activePath = event.target.localActiveViewPath;
- }}>
-
-
- `
- : nothing}
- `;
+ return this._routes.length > 0
+ ? html`
+
+ ${this.#renderDashboards()} ${this.#renderViews()}
+ {
+ this._routerPath = event.target.absoluteRouterPath;
+ }}
+ @change=${(event: UmbRouterSlotChangeEvent) => {
+ this._activePath = event.target.localActiveViewPath;
+ }}>
+
+
+ `
+ : html`${nothing}`;
}
#renderDashboards() {
- return this._dashboards.length > 0 ? html`
-
- ${this._dashboards.map(
- (dashboard) => html`
-
- ${dashboard.meta.label || dashboard.name}
-
- `
- )}
-
- ` : '';
+ return this._dashboards.length > 0
+ ? html`
+
+ ${this._dashboards.map(
+ (dashboard) => html`
+
+ ${dashboard.meta.label || dashboard.name}
+
+ `
+ )}
+
+ `
+ : '';
}
#renderViews() {
- return this._views.length > 0 ? html`
-
- ${this._views.map(
- (view) => html`
-
-
- ${view.meta.label || view.name}
-
- `
- )}
-
- ` : '';
+ return this._views.length > 0
+ ? html`
+
+ ${this._views.map(
+ (view) => html`
+
+
+ ${view.meta.label || view.name}
+
+ `
+ )}
+
+ `
+ : '';
}
static styles = [
@@ -184,22 +186,7 @@ export class UmbSectionViewsElement extends UmbLitElement {
height: 100%;
}
- #header {
- background-color: var(--uui-color-surface);
- border-bottom: 1px solid var(--uui-color-divider-standalone);
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: var(--umb-header-layout-height);
- box-sizing: border-box;
- }
-
- #dashboards {
- margin: 0 var(--uui-size-layout-1);
- }
-
#views {
- justify-content: flex-end;
--uui-tab-divider: var(--uui-color-divider-standalone);
}
diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type-workspace-editor.element.ts
index b957b1aded..8d10ebc83b 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type-workspace-editor.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type-workspace-editor.element.ts
@@ -125,7 +125,6 @@ export class UmbDocumentTypeWorkspaceEditorElement extends UmbLitElement {
#header {
display: flex;
flex: 1 1 auto;
- margin: 0 var(--uui-size-layout-1);
}
#name {