diff --git a/src/components/ha-navigation-list.ts b/src/components/ha-navigation-list.ts index 41200f14b5..782c5d4975 100644 --- a/src/components/ha-navigation-list.ts +++ b/src/components/ha-navigation-list.ts @@ -56,6 +56,9 @@ class HaNavigationList extends LitElement { } static styles: CSSResultGroup = css` + :host { + --mdc-list-vertical-padding: 0; + } a { text-decoration: none; color: var(--primary-text-color); diff --git a/src/panels/config/core/ha-config-section-updates.ts b/src/panels/config/core/ha-config-section-updates.ts index e0c0c6411e..708d44de51 100644 --- a/src/panels/config/core/ha-config-section-updates.ts +++ b/src/panels/config/core/ha-config-section-updates.ts @@ -262,7 +262,7 @@ class HaConfigSectionUpdates extends LitElement { margin: 0 auto; } ha-card { - max-width: 500px; + max-width: 600px; margin: 0 auto; height: 100%; justify-content: space-between; @@ -272,7 +272,6 @@ class HaConfigSectionUpdates extends LitElement { } .card-actions { height: 48px; - border-top: none; display: flex; justify-content: space-between; align-items: center; @@ -282,7 +281,7 @@ class HaConfigSectionUpdates extends LitElement { display: flex; justify-content: space-between; flex-direction: column; - padding: 16px 16px 0 16px; + padding: 16px; } `; } diff --git a/src/panels/config/core/ha-config-system-navigation.ts b/src/panels/config/core/ha-config-system-navigation.ts index 7b29e93c5f..ad5edab63f 100644 --- a/src/panels/config/core/ha-config-system-navigation.ts +++ b/src/panels/config/core/ha-config-system-navigation.ts @@ -64,9 +64,6 @@ class HaConfigSystemNavigation extends LitElement { return [ haStyle, css` - ha-card { - margin-bottom: env(safe-area-inset-bottom); - } :host(:not([narrow])) ha-card { margin-bottom: max(24px, env(safe-area-inset-bottom)); } @@ -79,6 +76,8 @@ class HaConfigSystemNavigation extends LitElement { ha-card { overflow: hidden; + margin-bottom: 24px; + margin-bottom: max(24px, env(safe-area-inset-bottom)); } ha-card a { diff --git a/src/panels/config/dashboard/ha-config-updates.ts b/src/panels/config/dashboard/ha-config-updates.ts index f2d823bd01..416b0d9d8d 100644 --- a/src/panels/config/dashboard/ha-config-updates.ts +++ b/src/panels/config/dashboard/ha-config-updates.ts @@ -1,6 +1,6 @@ import "@material/mwc-button/mwc-button"; -import "@polymer/paper-item/paper-icon-item"; -import "@polymer/paper-item/paper-item-body"; +import "@material/mwc-list/mwc-list"; +import "@material/mwc-list/mwc-list-item"; import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { customElement, property } from "lit/decorators"; import { fireEvent } from "../../../common/dom/fire_event"; @@ -8,7 +8,7 @@ import "../../../components/entity/state-badge"; import "../../../components/ha-alert"; import "../../../components/ha-icon-next"; import type { UpdateEntity } from "../../../data/update"; -import { HomeAssistant } from "../../../types"; +import type { HomeAssistant } from "../../../types"; @customElement("ha-config-updates") class HaConfigUpdates extends LitElement { @@ -35,39 +35,44 @@ class HaConfigUpdates extends LitElement { count: this.total || this.updateEntities.length, })} - ${updates.map( - (entity) => html` - - + + ${updates.map( + (entity) => html` + - - - ${entity.attributes.title || entity.attributes.friendly_name} -
+ ${entity.attributes.title || + entity.attributes.friendly_name} + ${this.hass.localize( "ui.panel.config.updates.version_available", { version_available: entity.attributes.latest_version, } - )} - ${entity.attributes.skipped_version + )}${entity.attributes.skipped_version ? `(${this.hass.localize("ui.panel.config.updates.skipped")})` : ""} -
-
- ${!this.narrow ? html`` : ""} -
- ` - )} + + ${!this.narrow + ? html`` + : ""} + + ` + )} + `; } @@ -80,6 +85,9 @@ class HaConfigUpdates extends LitElement { static get styles(): CSSResultGroup[] { return [ css` + :host { + --mdc-list-vertical-padding: 0; + } .title { font-size: 16px; padding: 16px; @@ -88,11 +96,6 @@ class HaConfigUpdates extends LitElement { .skipped { background: var(--secondary-background-color); } - .icon { - display: inline-flex; - height: 100%; - align-items: center; - } ha-icon-next { color: var(--secondary-text-color); height: 24px; @@ -114,8 +117,9 @@ class HaConfigUpdates extends LitElement { outline: none; text-decoration: underline; } - paper-icon-item { + mwc-list-item { cursor: pointer; + font-size: 16px; } `, ]; diff --git a/src/panels/config/hardware/ha-config-hardware.ts b/src/panels/config/hardware/ha-config-hardware.ts index 6b22057e59..833f40b9ee 100644 --- a/src/panels/config/hardware/ha-config-hardware.ts +++ b/src/panels/config/hardware/ha-config-hardware.ts @@ -218,7 +218,7 @@ class HaConfigHardware extends LitElement { margin: 0 auto; } ha-card { - max-width: 500px; + max-width: 600px; margin: 0 auto; height: 100%; justify-content: space-between; @@ -237,7 +237,6 @@ class HaConfigHardware extends LitElement { } .card-actions { height: 48px; - border-top: none; display: flex; justify-content: space-between; align-items: center; diff --git a/src/panels/config/network/ha-config-section-network.ts b/src/panels/config/network/ha-config-section-network.ts index bdc61aaa0f..c7edf88f3b 100644 --- a/src/panels/config/network/ha-config-section-network.ts +++ b/src/panels/config/network/ha-config-section-network.ts @@ -28,6 +28,7 @@ class HaConfigSectionNetwork extends LitElement { ${isComponentLoaded(this.hass, "hassio") ? html` ` : ""} diff --git a/src/panels/config/network/supervisor-hostname.ts b/src/panels/config/network/supervisor-hostname.ts index f18c173217..acb58df7b3 100644 --- a/src/panels/config/network/supervisor-hostname.ts +++ b/src/panels/config/network/supervisor-hostname.ts @@ -14,6 +14,7 @@ import "../../../components/ha-header-bar"; import "../../../components/ha-icon-button"; import "../../../components/ha-radio"; import "../../../components/ha-related-items"; +import "../../../components/ha-settings-row"; import "../../../components/ha-textfield"; import { extractApiErrorMessage } from "../../../data/hassio/common"; import { @@ -22,12 +23,13 @@ import { } from "../../../data/hassio/host"; import { showAlertDialog } from "../../../dialogs/generic/show-dialog-box"; import type { HomeAssistant } from "../../../types"; -import "../../../components/ha-settings-row"; @customElement("supervisor-hostname") export class HassioHostname extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; + @property({ type: Boolean }) narrow!: boolean; + @state() private _processing = false; @state() private _hostname?: string; @@ -48,11 +50,12 @@ export class HassioHostname extends LitElement { return html` -
- +
+ Hostname The name your instance will have on your network + ${this._hostInfo + ? html` + + + + ${this.hass.localize( + "ui.panel.config.storage.datadisk.title" + )} + + + ` + : ""}
${this._error ? html` @@ -79,13 +96,6 @@ class HaConfigSectionStorage extends LitElement { ` : ""}
-
- - ${this.hass.localize( - "ui.panel.config.storage.datadisk.title" - )} - -
` : ""} @@ -118,26 +128,16 @@ class HaConfigSectionStorage extends LitElement { margin: 0 auto; } ha-card { - max-width: 500px; + max-width: 600px; margin: 0 auto; - height: 100%; justify-content: space-between; flex-direction: column; display: flex; } - .card-actions { - height: 48px; - border-top: none; - display: flex; - justify-content: space-between; - align-items: center; - } - .card-content { display: flex; justify-content: space-between; flex-direction: column; - padding: 16px 16px 0 16px; } `; } diff --git a/src/panels/config/system-health/ha-config-system-health.ts b/src/panels/config/system-health/ha-config-system-health.ts index 8c15021747..efc357cf2c 100644 --- a/src/panels/config/system-health/ha-config-system-health.ts +++ b/src/panels/config/system-health/ha-config-system-health.ts @@ -452,7 +452,7 @@ class HaConfigSystemHealth extends SubscribeMixin(LitElement) { } ha-card { display: block; - max-width: 500px; + max-width: 600px; margin: 0 auto; padding-bottom: 16px; margin-bottom: max(24px, env(safe-area-inset-bottom)); diff --git a/src/translations/en.json b/src/translations/en.json index 500a94caf5..5ab75292b8 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3212,8 +3212,8 @@ }, "system_health": { "caption": "System Health", - "cpu_usage": "CPU Usage", - "ram_usage": "RAM Usage", + "cpu_usage": "Process Usage", + "ram_usage": "Memory Usage", "core_stats": "Core Stats", "supervisor_stats": "Supervisor Stats" }