Skip to content

Commit

Permalink
Fix hassio repositories tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
wendevlin committed Oct 31, 2024
1 parent f1d49aa commit 03b80a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 6 additions & 4 deletions hassio/src/dialogs/repositories/dialog-hassio-repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ class HassioRepositoriesDialog extends LitElement {
</div>
<div class="delete" slot="end">
<ha-icon-button
.label=${this._dialogParams!.supervisor.localize(
"dialog.repositories.remove"
)}
.disabled=${usedRepositories.includes(repo.slug)}
.slug=${repo.slug}
.path=${usedRepositories.includes(repo.slug)
Expand All @@ -146,7 +143,11 @@ class HassioRepositoriesDialog extends LitElement {
</ha-md-list-item>
`
)
: html`<ha-md-list-item> No repositories </ha-md-list-item>`}
: html`<ha-md-list-item
>${this._dialogParams!.supervisor.localize(
"dialog.repositories.no_repositories"
)}</ha-md-list-item
>`}
</ha-md-list>
<div class="layout horizontal bottom">
<ha-textfield
Expand Down Expand Up @@ -212,6 +213,7 @@ class HassioRepositoriesDialog extends LitElement {
}
ha-md-list-item {
position: relative;
--md-item-overflow: visible;
}
`,
];
Expand Down
3 changes: 3 additions & 0 deletions src/components/ha-md-list-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export class HaMdListItem extends MdListItem {
--md-sys-color-on-surface: var(--primary-text-color);
--md-sys-color-on-surface-variant: var(--secondary-text-color);
}
md-item {
overflow: var(--md-item-overflow, hidden);
}
`,
];
}
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7774,7 +7774,8 @@
"title": "Manage add-on repositories",
"add": "Add",
"remove": "Remove",
"used": "Repository is in use for installed add-ons and can't be removed."
"used": "Repository is in use for installed add-ons and can't be removed.",
"no_repositories": "No repositories"
},
"restart_addon": {
"title": "Restart {name}?",
Expand Down

0 comments on commit 03b80a9

Please sign in to comment.