From 18faafb57bb27245a6aaff5ffd263e5a4569496a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 2 Jun 2022 14:40:08 +0200 Subject: [PATCH] umb-editor-property-layout --- src/Umbraco.Web.UI.Client/src/app.ts | 3 +- ...ut.element.ts => editor-layout.element.ts} | 10 +++--- .../editors/editor-property-layout.element.ts | 32 +++++++++++++++++++ .../node-editor/node-property.element.ts | 20 ++++-------- .../content/content-editor.element.ts | 4 +-- 5 files changed, 47 insertions(+), 22 deletions(-) rename src/Umbraco.Web.UI.Client/src/editors/{node-editor/node-editor-layout.element.ts => editor-layout.element.ts} (90%) create mode 100644 src/Umbraco.Web.UI.Client/src/editors/editor-property-layout.element.ts diff --git a/src/Umbraco.Web.UI.Client/src/app.ts b/src/Umbraco.Web.UI.Client/src/app.ts index 434bd01c62..6134e275c8 100644 --- a/src/Umbraco.Web.UI.Client/src/app.ts +++ b/src/Umbraco.Web.UI.Client/src/app.ts @@ -11,7 +11,8 @@ import { UmbNodeStore } from './core/stores/node.store'; import { UmbDataTypeStore } from './core/stores/data-type.store'; // Load these in the correct components -import './editors/node-editor/node-editor-layout.element'; +import './editors/editor-layout.element'; +import './editors/editor-property-layout.element'; import './editors/node-editor/node-property-data-type.element'; import './editors/node-editor/node-property.element'; diff --git a/src/Umbraco.Web.UI.Client/src/editors/node-editor/node-editor-layout.element.ts b/src/Umbraco.Web.UI.Client/src/editors/editor-layout.element.ts similarity index 90% rename from src/Umbraco.Web.UI.Client/src/editors/node-editor/node-editor-layout.element.ts rename to src/Umbraco.Web.UI.Client/src/editors/editor-layout.element.ts index 404c4f4ac9..8c0c82e69d 100644 --- a/src/Umbraco.Web.UI.Client/src/editors/node-editor/node-editor-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/src/editors/editor-layout.element.ts @@ -2,8 +2,8 @@ import { css, html, LitElement } from 'lit'; import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; import { customElement } from 'lit/decorators.js'; -@customElement('umb-node-editor-layout') -class UmbNodeEditorLayout extends LitElement { +@customElement('umb-editor-layout') +class UmbEditorLayout extends LitElement { static styles = [ UUITextStyles, css` @@ -13,7 +13,7 @@ class UmbNodeEditorLayout extends LitElement { height: 100%; } - #node-editor { + #editor-frame { background-color: var(--uui-color-background); width: 100%; height: 100%; @@ -57,7 +57,7 @@ class UmbNodeEditorLayout extends LitElement { render() { return html` -
+