${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;