From 3d2e685d4fba5f89c8e7ee0bfeb9f74c4628d234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20M=C3=B8ller=20Jensen?= <26099018+JesmoDev@users.noreply.github.com> Date: Thu, 8 Jun 2023 17:57:44 +1200 Subject: [PATCH] document type workspace now uses body-layout --- ...document-type-workspace-view-edit-tab.element.ts | 11 +++-------- .../document-type-workspace-view-edit.element.ts | 13 +++++++------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.ts index f9a8342735..40fd0fb918 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.ts @@ -101,16 +101,11 @@ export class UmbDocumentTypeWorkspaceViewEditTabElement extends UmbLitElement { static styles = [ UUITextStyles, css` - :host { - display: block; - margin: var(--uui-size-layout-1); - padding-bottom: var(--uui-size-layout-1); // To enforce some distance to the bottom of the scroll-container. - } - uui-box { - margin-top: var(--uui-size-layout-1); + #add { + width: 100%; } - #add { + #add:not(:first-child) { width: 100%; margin-top: var(--uui-size-layout-1); } diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.ts index 3b7d116eda..0e1fce1fb8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.ts @@ -184,8 +184,10 @@ export class UmbDocumentTypeWorkspaceViewEditElement render() { return html` -
${this._routerPath ? this.renderTabsNavigation() : ''}${this.renderActions()}
- + + { @@ -195,7 +197,7 @@ export class UmbDocumentTypeWorkspaceViewEditElement this._activePath = event.target.absoluteActiveViewPath || ''; }}> - + `; } @@ -211,12 +213,11 @@ export class UmbDocumentTypeWorkspaceViewEditElement } /* TODO: This should be replaced with a general workspace bar — naming is hard */ - #workspace-tab-bar { - padding: 0 var(--uui-size-layout-1); + #header { + width: 100%; display: flex; align-items: center; justify-content: space-between; - background-color: var(--uui-color-surface); flex-wrap: nowrap; } `,