Skip to content

Commit

Permalink
Style fix for custom repository dialog (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Feb 14, 2021
1 parent 8e694d7 commit d661db8
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions src/components/dialogs/hacs-custom-repositories-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase {
.active=${this.active}
.hass=${this.hass}
.title=${this.hacs.localize("dialog_custom_repositories.title")}
hideActions
>
<div class="content">
<div class="list">
Expand Down Expand Up @@ -76,17 +77,17 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase {
)}
</div>
</div>
<input
id="add-input"
class="add-input"
slot="secondaryaction"
placeholder="${this.hacs.localize("dialog_custom_repositories.url_placeholder")}"
.value=${this._inputRepository || ""}
@input=${this._inputValueChanged}
?narrow=${this.narrow}
/>
<div class="add-repository" ?narrow=${this.narrow}>
<input
id="add-input"
class="add-input"
slot="secondaryaction"
placeholder="${this.hacs.localize("dialog_custom_repositories.url_placeholder")}"
.value=${this._inputRepository || ""}
@input=${this._inputValueChanged}
?narrow=${this.narrow}
/>
<div class="add" slot="primaryaction" ?narrow=${this.narrow}>
<paper-dropdown-menu
?narrow=${this.narrow}
class="category"
Expand All @@ -107,8 +108,9 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase {
slot="primaryaction"
raised
@click=${this._addRepository}
>${this.hacs.localize("common.add")}</mwc-button
>
${this.hacs.localize("common.add")}
</mwc-button>
</div>
</hacs-dialog>
`;
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand All @@ -267,7 +268,7 @@ export class HacsCustomRepositoriesDialog extends HacsDialogBase {
width: 100%;
max-width: 100%;
}
.add[narrow] {
.add-repository[narrow] {
display: contents;
}
`,
Expand Down

0 comments on commit d661db8

Please sign in to comment.