Skip to content

Commit

Permalink
Fix search bar styling (#23396)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Dec 23, 2024
1 parent fd95ab5 commit 061b6af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
8 changes: 0 additions & 8 deletions src/components/ha-outlined-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ export class HaOutlinedField extends MdOutlinedField {
border-end-start-radius: var(--_container-shape-end-start);
border-end-end-radius: var(--_container-shape-end-end);
}
.with-start .start {
margin-inline-end: var(--ha-outlined-field-start-margin, 4px);
margin-inline-start: initial;
}
.with-end .end {
margin-inline-start: var(--ha-outlined-field-end-margin, 4px);
margin-inline-end: initial;
}
`,
];
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/ha-outlined-text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export class HaOutlinedTextField extends MdOutlinedTextField {
--md-outlined-field-container-shape-end-end: 10px;
--md-outlined-field-container-shape-end-start: 10px;
--md-outlined-field-focus-outline-width: 1px;
--ha-outlined-field-start-margin: -4px;
--ha-outlined-field-end-margin: -4px;
--md-outlined-field-with-leading-content-leading-space: 8px;
--md-outlined-field-with-trailing-content-trailing-space: 8px;
--md-outlined-field-content-space: 8px;
--mdc-icon-size: var(--md-input-chip-icon-size, 18px);
}
.input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,8 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
>
${this.narrow
? html`
<div slot="header">
<div slot="header" class="header">
<search-input-outlined
class="header"
.hass=${this.hass}
.filter=${this._filter}
@value-changed=${this._handleSearchChange}
Expand All @@ -457,7 +456,6 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
></ha-integration-overflow-menu>
<div class="search">
<search-input-outlined
class="header"
.hass=${this.hass}
.filter=${this._filter}
@value-changed=${this._handleSearchChange}
Expand Down Expand Up @@ -982,6 +980,9 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
search-input-outlined {
flex: 1;
}
.header {
display: flex;
}
.search {
display: flex;
justify-content: space-between;
Expand Down

0 comments on commit 061b6af

Please sign in to comment.