From 5199e946a16f76d72795fc76a3e23a3aa44d3f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 3 Feb 2021 16:08:29 +0100 Subject: [PATCH] Fix button layout for addon-info (#8315) --- .../src/addon-view/info/hassio-addon-info.ts | 163 +++++++++--------- 1 file changed, 82 insertions(+), 81 deletions(-) diff --git a/hassio/src/addon-view/info/hassio-addon-info.ts b/hassio/src/addon-view/info/hassio-addon-info.ts index 4ce12665d8..79674fac22 100644 --- a/hassio/src/addon-view/info/hassio-addon-info.ts +++ b/hassio/src/addon-view/info/hassio-addon-info.ts @@ -536,85 +536,88 @@ class HassioAddonInfo extends LitElement { ${this._error ? html`
${this._error}
` : ""}
- ${this.addon.version - ? html` - ${this._computeIsRunning - ? html` - - Stop - - - Restart - - ` - : html` - - Start - - `} - ${this._computeShowWebUI - ? html` - - +
+ ${this.addon.version + ? this._computeIsRunning + ? html` + + Stop + + + Restart + + ` + : html` + + Start + + ` + : html` + ${!this.addon.available + ? html` +

+ This add-on is not available on your system. +

+ ` + : ""} + + Install + + `} +
+
+ ${this.addon.version + ? html` ${this._computeShowWebUI + ? html` + + + Open web UI + + + ` + : ""} + ${this._computeShowIngressUI + ? html` + Open web UI - - ` - : ""} - ${this._computeShowIngressUI - ? html` - - Open web UI - - ` - : ""} - - Uninstall - - ${this.addon.build - ? html` - - Rebuild - - ` - : ""} - ` - : html` - ${!this.addon.available - ? html` -

- This add-on is not available on your system. -

- ` - : ""} - - Install - - `} + ` + : ""} + + Uninstall + + ${this.addon.build + ? html` + + Rebuild + + ` + : ""}` + : ""} +
@@ -994,9 +997,6 @@ class HassioAddonInfo extends LitElement { font-weight: 500; color: var(--primary-color); } - .right { - float: right; - } protection-enable mwc-button { --mdc-theme-primary: white; } @@ -1019,7 +1019,8 @@ class HassioAddonInfo extends LitElement { margin-bottom: 16px; } .card-actions { - display: flow-root; + justify-content: space-between; + display: flex; } .security h3 { margin-bottom: 8px;