From d661db85ef2490501236e3ddf21328df9e08e7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sun, 14 Feb 2021 19:19:01 +0100 Subject: [PATCH] Style fix for custom repository dialog (#387) --- .../hacs-custom-repositories-dialog.ts | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/components/dialogs/hacs-custom-repositories-dialog.ts b/src/components/dialogs/hacs-custom-repositories-dialog.ts index 7f1e157d..c8634933 100644 --- a/src/components/dialogs/hacs-custom-repositories-dialog.ts +++ b/src/components/dialogs/hacs-custom-repositories-dialog.ts @@ -43,6 +43,7 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { .active=${this.active} .hass=${this.hass} .title=${this.hacs.localize("dialog_custom_repositories.title")} + hideActions >
@@ -76,17 +77,17 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { )}
- +
+ -
${this.hacs.localize("common.add")} + ${this.hacs.localize("common.add")} +
`; @@ -222,20 +224,20 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { font-size: 14px; color: var(--secondary-text-color); } - .add { - display: flex; + .add-repository { + display: grid; width: 100%; - align-items: center; + justify-items: right; } .add-input { width: 100%; height: 40px; + margin-top: 32px; border: 0; border-bottom: 1px var(--mdc-theme-primary) solid; - padding: 0; text-align: left; - padding-right: 71px; + padding: 0px; font-size: initial; color: var(--sidebar-text-color); font-family: var(--paper-font-body1_-_font-family); @@ -249,15 +251,14 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { } paper-dropdown-menu { width: 100%; - left: -50px; - top: -8px; } mwc-button { - margin-right: 10px; + width: fit-content; + margin-top: 16px; } input[narrow], - .add[narrow], + .add-repository[narrow], paper-dropdown-menu[narrow], mwc-button[narrow] { margin: 0; @@ -267,7 +268,7 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase { width: 100%; max-width: 100%; } - .add[narrow] { + .add-repository[narrow] { display: contents; } `,