Skip to content

Commit

Permalink
Use max-content for clear new button (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Feb 5, 2022
1 parent 5abf0d2 commit e3f614a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/panels/hacs-store-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ export class HacsStorePanel extends LitElement {
{
path: mdiAlertCircleOutline,
label: this.hacs.localize("menu.open_issue"),
action: () => mainWindow.open("https://hacs.xyz/docs/issues", "_blank", "noreferrer=true"),
action: () =>
mainWindow.open("https://hacs.xyz/docs/issues", "_blank", "noreferrer=true"),
},
{
path: mdiGit,
Expand Down Expand Up @@ -214,6 +215,7 @@ export class HacsStorePanel extends LitElement {
? html`<ha-alert .rtl=${computeRTL(this.hass)}>
${this.hacs.localize("store.new_repositories_note")}
<mwc-button
class="max-content"
slot="action"
.label=${this.hacs.localize("menu.dismiss")}
@click=${this._clearAllNewRepositories}
Expand Down Expand Up @@ -361,6 +363,9 @@ export class HacsStorePanel extends LitElement {
.bottom-bar {
position: fixed !important;
}
.max-content {
width: max-content;
}
`,
];
}
Expand Down

0 comments on commit e3f614a

Please sign in to comment.