not-active

This commit is contained in:
Niels Lyngsø
2024-04-16 10:48:43 +02:00
parent 0757cea52b
commit 47a25cdc7b

View File

@@ -447,7 +447,7 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements
renderTabInner(tab: UmbPropertyTypeContainerModel, tabActive: boolean, ownedTab: boolean) { renderTabInner(tab: UmbPropertyTypeContainerModel, tabActive: boolean, ownedTab: boolean) {
// TODO: Localize this: // TODO: Localize this:
if (this._sortModeActive) { if (this._sortModeActive) {
return html`<div class="no-edit"> return html`<div class="not-active">
${ownedTab ${ownedTab
? html`<uui-icon name="icon-navigation" class="drag-${tab.id}"> </uui-icon>${tab.name!} ? html`<uui-icon name="icon-navigation" class="drag-${tab.id}"> </uui-icon>${tab.name!}
<uui-input <uui-input
@@ -478,9 +478,9 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements
} }
if (ownedTab) { if (ownedTab) {
return html`<div class="no-edit">${tab.name!} ${this.renderDeleteFor(tab)}</div>`; return html`<div class="not-active">${tab.name!} ${this.renderDeleteFor(tab)}</div>`;
} else { } else {
return html`<div class="no-edit"><uui-icon name="icon-merge"></uui-icon>${tab.name!}</div>`; return html`<div class="not-active"><uui-icon name="icon-merge"></uui-icon>${tab.name!}</div>`;
} }
} }
@@ -559,11 +559,11 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements
border-right: 1px solid var(--uui-color-border); border-right: 1px solid var(--uui-color-border);
} }
.no-edit uui-input { .not-active uui-input {
pointer-events: auto; pointer-events: auto;
} }
.no-edit { .not-active {
pointer-events: none; pointer-events: none;
display: inline-flex; display: inline-flex;
padding-left: var(--uui-size-space-3); padding-left: var(--uui-size-space-3);