diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts index a8db696e39..f9398a0def 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/data-type/editor-data-type.element.ts @@ -28,8 +28,10 @@ export class UmbEditorDataTypeElement extends UmbContextProviderMixin( height: 100%; } - #name { - width: 100%; + #header { + /* TODO: can this be applied from layout slot CSS? */ + margin: 0 var(--uui-size-layout-1); + flex:1 1 auto; } `, ]; @@ -141,7 +143,7 @@ export class UmbEditorDataTypeElement extends UmbContextProviderMixin( render() { return html` - + `; } diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/document-type/editor-document-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/document-type/editor-document-type.element.ts index e34d9ff1ef..ca925dd249 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/document-type/editor-document-type.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/document-type/editor-document-type.element.ts @@ -122,9 +122,8 @@ export class UmbEditorDocumentTypeElement extends UmbContextProviderMixin( render() { return html` -
Icon
- -
+
+
Icon
${this._documentType?.alias}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-action-extension/editor-action-extension.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-action-extension/editor-action-extension.element.ts index 94711a1606..e88b801c70 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-action-extension/editor-action-extension.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-action-extension/editor-action-extension.element.ts @@ -4,6 +4,7 @@ import { customElement, property, state } from 'lit/decorators.js'; import { createExtensionElement } from '@umbraco-cms/extensions-api'; import type { ManifestEditorAction } from '@umbraco-cms/models'; +// Niels, thoughts, TODO: Consider naming this just actions, not extension as everything is an extension. @customElement('umb-editor-action-extension') export class UmbEditorActionExtensionElement extends LitElement { static styles: CSSResultGroup = [UUITextStyles]; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-content/editor-content.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-content/editor-content.element.ts index 18d03e63f2..aadcdaa07d 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-content/editor-content.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-content/editor-content.element.ts @@ -31,11 +31,22 @@ export class UmbEditorContentElement extends UmbContextProviderMixin( height: 100%; } - #popover { - display: block; + #header { + margin: 0 var(--uui-size-layout-1); + flex:1 1 auto; + } + #name-input { + width: 100%; + height: 100%;/** I really don't know why this fixes the border colliding with variant-selector-toggle, but lets this solution for now */ } - #dropdown { + #variant-selector-toggle { + white-space: nowrap; + } + #variant-selector-popover { + display: block; + } + #variant-selector-dropdown { overflow: hidden; z-index: -1; background-color: var(--uui-combobox-popover-background-color, var(--uui-color-surface)); @@ -47,8 +58,9 @@ export class UmbEditorContentElement extends UmbContextProviderMixin( box-shadow: var(--uui-shadow-depth-3); } - uui-input { - width: 100%; + #footer { + margin: 0 var(--uui-size-layout-1); + flex:1 1 auto; } `, ]; @@ -90,6 +102,7 @@ export class UmbEditorContentElement extends UmbContextProviderMixin( } }; + // TODO: How do we ensure this is a change of this document and not nested documents? Should the event be stopped at this spot at avoid such. private _setPropertyValue(alias: string, value: unknown) { this._node?.data.forEach((data) => { if (data.alias === alias) { @@ -160,13 +173,13 @@ export class UmbEditorContentElement extends UmbContextProviderMixin( render() { return html` -
- +