diff --git a/src/panels/config/integrations/ha-config-integration-page.ts b/src/panels/config/integrations/ha-config-integration-page.ts index 8ef1ddebb9..7a729dbff1 100644 --- a/src/panels/config/integrations/ha-config-integration-page.ts +++ b/src/panels/config/integrations/ha-config-integration-page.ts @@ -453,7 +453,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { const attention = ATTENTION_SOURCES.includes( flow.context.source ); - return html` ${flow.localized_title} @@ -477,8 +477,15 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { > `; })} - ${attentionEntries.map((item) => - this._renderConfigEntry(item) + ${attentionEntries.map( + (item, index) => + html`${this._renderConfigEntry(item)} + ${index < attentionEntries.length - 1 + ? html` ` + : ""} ` )} ` @@ -502,7 +509,16 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { ` : nothing} - ${normalEntries.map((item) => this._renderConfigEntry(item))} + ${normalEntries.map( + (item, index) => + html`${this._renderConfigEntry(item)} + ${index < normalEntries.length - 1 + ? html` ` + : ""} ` + )}
@@ -667,19 +683,21 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { const configPanel = this._configPanel(item.domain, this.hass.panels); - return html` - ${item.title || domainToName(this.hass.localize, item.domain)} +
+ ${item.title || domainToName(this.hass.localize, item.domain)} +
${devicesLine}
${stateText @@ -726,67 +744,62 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { .path=${mdiDotsVertical} > ${item.supports_options && stateText - ? html` - + ? html` + ${this.hass.localize( "ui.panel.config.integrations.config_entry.configure" )} - ` + ` : ""} ${item.disabled_by && devices.length - ? html` - - + ? html` + + ${this.hass.localize( `ui.panel.config.integrations.config_entry.devices`, { count: devices.length } )} - - - ` + + + ` : ""} ${item.disabled_by && services.length - ? html` - - - ${this.hass.localize( - `ui.panel.config.integrations.config_entry.services`, - { count: services.length } - )} - - - ` + + ${this.hass.localize( + `ui.panel.config.integrations.config_entry.services`, + { count: services.length } + )} + + ` : ""} ${item.disabled_by && entities.length - ? html` - + ? html` + ${this.hass.localize( `ui.panel.config.integrations.config_entry.entities`, { count: entities.length } )} - - - ` + + + ` : ""} ${!item.disabled_by && RECOVERABLE_STATES.includes(item.state) && @@ -814,7 +827,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { ${this._diagnosticHandler && item.state === "loaded" ? html` @@ -1402,18 +1415,8 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { margin-top: 16px; } ha-list-item-new.discovered { - --mdc-list-item-meta-size: auto; - --mdc-list-item-meta-display: flex; height: 72px; } - ha-list-item-new.config_entry { - overflow: visible; - --mdc-list-item-meta-size: auto; - --mdc-list-item-meta-display: flex; - } - ha-button-menu-new ha-menu-item { - --mdc-icon-size: 24px; - } ha-list-item-new.config_entry::after { position: absolute; top: 8px; @@ -1424,9 +1427,6 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { pointer-events: none; content: ""; } - ha-button-menu-new { - flex: 0; - } a { text-decoration: none; } @@ -1483,6 +1483,10 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { overflow: hidden; text-overflow: ellipsis; } + .state-disabled [slot="headline"], + .state-disabled [slot="supporting-text"] { + opacity: var(--md-list-item-disabled-opacity, 0.3); + } ha-list-new { margin-top: 8px; margin-bottom: 8px;