From 35f776284b0502cc885a6dcfcd6efc11011a2f1f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 6 Mar 2021 05:18:42 -0800 Subject: [PATCH] Better place where device edit button is on desktop (#8566) --- .../config/devices/ha-config-device-page.ts | 50 ++++++++++++------- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/src/panels/config/devices/ha-config-device-page.ts b/src/panels/config/devices/ha-config-device-page.ts index 541ceabd16..aa988682a3 100644 --- a/src/panels/config/devices/ha-config-device-page.ts +++ b/src/panels/config/devices/ha-config-device-page.ts @@ -181,15 +181,17 @@ export class HaConfigDevicePage extends LitElement { ${computeDeviceName(device, this.hass)} + ` : "" } - + +
@@ -197,19 +199,25 @@ export class HaConfigDevicePage extends LitElement { this.narrow ? "" : html` -
-

${computeDeviceName(device, this.hass)}

- ${area - ? html` - ${this.hass.localize( - "ui.panel.config.integrations.config_entry.area", - "area", - area.name || "Unnamed Area" - )} - ` - : ""} +
+
+

${computeDeviceName(device, this.hass)}

+ ${area + ? html` + ${this.hass.localize( + "ui.panel.config.integrations.config_entry.area", + "area", + area.name || "Unnamed Area" + )} + ` + : ""} +
+
` } @@ -780,6 +788,12 @@ export class HaConfigDevicePage extends LitElement { justify-content: space-between; } + .header-name { + display: flex; + align-items: center; + padding-left: 8px; + } + .column, .fullwidth { padding: 8px;