From 85fe2213c1347c16b60d793e34eb5c6f5665b27a Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Tue, 4 Feb 2025 13:25:59 +0100 Subject: [PATCH] Align view mount dialog with design guidelines (#24060) Align view mount dialog with design requirements --- .../config/storage/dialog-mount-view.ts | 61 +++++++++++-------- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/src/panels/config/storage/dialog-mount-view.ts b/src/panels/config/storage/dialog-mount-view.ts index eff766daae..38d579a26e 100644 --- a/src/panels/config/storage/dialog-mount-view.ts +++ b/src/panels/config/storage/dialog-mount-view.ts @@ -1,4 +1,4 @@ -import { mdiHelpCircle } from "@mdi/js"; +import { mdiClose, mdiHelpCircle } from "@mdi/js"; import type { CSSResultGroup } from "lit"; import { css, html, LitElement, nothing } from "lit"; import { customElement, property, state } from "lit/decorators"; @@ -215,6 +215,12 @@ class ViewMountDialog extends LitElement { @closed=${this.closeDialog} > + ${this._existing ? this.hass.localize( @@ -261,30 +267,34 @@ class ViewMountDialog extends LitElement { @value-changed=${this._valueChanged} dialogInitialFocus > -
- - ${this.hass.localize("ui.common.cancel")} - - ${this._existing - ? html` - ${this.hass.localize("ui.common.delete")} - ` - : nothing} -
- - ${this._existing - ? this.hass.localize( - "ui.panel.config.storage.network_mounts.update" - ) - : this.hass.localize( - "ui.panel.config.storage.network_mounts.connect" - )} - + ${this._existing + ? html` + ${this.hass.localize("ui.common.delete")} + ` + : nothing} + +
+ + ${this.hass.localize("ui.common.cancel")} + + + ${this._existing + ? this.hass.localize( + "ui.panel.config.storage.network_mounts.update" + ) + : this.hass.localize( + "ui.panel.config.storage.network_mounts.connect" + )} + +
`; } @@ -389,9 +399,6 @@ class ViewMountDialog extends LitElement { ha-icon-button { color: var(--primary-text-color); } - .delete-btn { - --mdc-theme-primary: var(--error-color); - } `, ]; }