- ${this._repository.installed
- ? html`
-
-
- ${this._repository.installed_version}
-
- `
- : ""}
- ${authors
- ? authors.map(
- (author) => html`
-
-
- @${author}
-
- `
- )
- : ""}
- ${this._repository.downloads
- ? html`
-
- ${this._repository.downloads}
- `
- : ""}
-
-
- ${this._repository.stars}
+
+
+ ${this._repository.downloads}
+ `
+ : ""}
+
+
+ ${this._repository.stars}
+
+
+
+
+ ${this._repository.issues}
+
+
+
+
${this._repository.updated_info
? markdown.html(
this._repository.additional_info || this.hacs.localize("dialog_info.no_info"),
@@ -160,9 +153,6 @@ export class HacsRepositoryDialog extends HacsDialogBase {
return [
HacsStyles,
css`
- ha-chip {
- --ha-chip-icon-color: var(--hacs-chip-color, var(--primary-color));
- }
img {
max-width: 100%;
}
@@ -174,6 +164,7 @@ export class HacsRepositoryDialog extends HacsDialogBase {
}
.chips {
display: flex;
+ flex-wrap: wrap;
padding-bottom: 8px;
gap: 4px;
}
diff --git a/src/components/hacs-section-navigation.ts b/src/components/hacs-section-navigation.ts
deleted file mode 100644
index db4bcba2..00000000
--- a/src/components/hacs-section-navigation.ts
+++ /dev/null
@@ -1,126 +0,0 @@
-import "@polymer/paper-item/paper-icon-item";
-import "@polymer/paper-item/paper-item-body";
-import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
-import { customElement, property } from "lit/decorators";
-import "../../homeassistant-frontend/src/components/ha-card";
-import "../../homeassistant-frontend/src/components/ha-icon-next";
-import "../../homeassistant-frontend/src/components/ha-svg-icon";
-import { HomeAssistant } from "../../homeassistant-frontend/src/types";
-import { HacsPageNavigation } from "../data/common";
-import "./hacs-link";
-
-@customElement("hacs-section-navigation")
-class HacsSectionNavigation extends LitElement {
- @property({ attribute: false }) public hass!: HomeAssistant;
- @property({ attribute: false }) public pages!: HacsPageNavigation[];
- @property() public header: string;
- @property({ type: Boolean, attribute: "no-next" }) public noNext: boolean = false;
-
- protected render(): TemplateResult {
- return html`
-
+ ${this._repository.installed
+ ? html`
+
+
+ ${this._repository.installed_version}
-
-
-
- ${this._repository.issues}
+ `
+ : ""}
+ ${authors
+ ? authors.map(
+ (author) => html`
+
+
+ @${author}
-
-
- `
- : ""}
+ `
+ )
+ : ""}
+ ${this._repository.downloads
+ ? html` ${this.header}
` : ""}
- ${this.pages.map(
- (page) =>
- html`
- ${page.info ? page.info : ""}
-