diff --git a/src/components/ha-clickable-list-item.ts b/src/components/ha-clickable-list-item.ts index 4c73330cd0..536d347fdc 100644 --- a/src/components/ha-clickable-list-item.ts +++ b/src/components/ha-clickable-list-item.ts @@ -41,8 +41,6 @@ export class HaClickableListItem extends HaListItem { height: 100%; display: flex; align-items: center; - padding-left: var(--mdc-list-side-padding, 20px); - padding-right: var(--mdc-list-side-padding, 20px); overflow: hidden; } `, diff --git a/src/panels/config/hardware/ha-config-hardware.ts b/src/panels/config/hardware/ha-config-hardware.ts index a6498ab9bb..7ed1574fd7 100644 --- a/src/panels/config/hardware/ha-config-hardware.ts +++ b/src/panels/config/hardware/ha-config-hardware.ts @@ -5,7 +5,6 @@ import type { ChartOptions } from "chart.js"; import { UnsubscribeFunc } from "home-assistant-js-websocket"; import { css, html, LitElement, nothing, PropertyValues } from "lit"; import { customElement, property, state } from "lit/decorators"; -import { ifDefined } from "lit/directives/if-defined"; import { isComponentLoaded } from "../../../common/config/is_component_loaded"; import { numberFormatToLocale } from "../../../common/number/format_number"; import { round } from "../../../common/number/round"; @@ -283,53 +282,43 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { ? html`
- - - ${imageURL - ? html`` - : ""} - - ${boardName || - this.hass.localize( - "ui.panel.config.hardware.generic_hardware" - )} - - ${boardId - ? html` - ${boardId} - ` - : ""} - - ${documentationURL - ? html` - - ${this.hass.localize( - "ui.panel.config.hardware.documentation" - )} - ${this.hass.localize( - "ui.panel.config.hardware.documentation_description" - )} - - - ` + ${imageURL ? html`` : ""} +
+

+ ${boardName || + this.hass.localize( + "ui.panel.config.hardware.generic_hardware" + )} +

+ ${boardId + ? html`

${boardId}

` : ""} - +
+ ${documentationURL + ? html` + + + ${this.hass.localize( + "ui.panel.config.hardware.documentation" + )} + ${this.hass.localize( + "ui.panel.config.hardware.documentation_description" + )} + + + + ` + : ""} ${boardConfigEntries.length || isComponentLoaded(this.hass, "hassio") ? html`
@@ -500,6 +489,8 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { padding: 28px 20px 0; max-width: 1040px; margin: 0 auto; + --mdc-list-side-padding: 24px; + --mdc-list-vertical-padding: 0; } ha-card { max-width: 600px; @@ -516,12 +507,21 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { flex-direction: column; padding: 16px; } - + .card-content img { + max-width: 300px; + margin: auto; + } + .board-info { + text-align: center; + } .primary-text { font-size: 16px; + margin: 0; } .secondary-text { font-size: 14px; + margin-bottom: 0; + color: var(--secondary-text-color); } .header {