Skip to content

Commit

Permalink
Merge pull request #644 from geonetwork/mobile-placeholder
Browse files Browse the repository at this point in the history
Improve autocomplete input rendering
  • Loading branch information
jahow authored Oct 6, 2023
2 parents df6fb76 + e7ba117 commit e5584f9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
:host {
--input-height: 3.5em;
}
.clear-btn {
width: 3.5em;
width: var(--input-height);
right: var(--input-height);
height: 100%;
right: 3.5em;
}
.search-btn {
width: 3.5em;
width: var(--input-height);
height: 100%;
border-left-width: 0.1em;
}
Expand All @@ -15,9 +18,14 @@ mat-icon {
font-size: 1.5em;
}
input {
height: 3.5em;
height: var(--input-height);
padding: 1.05em;
padding-right: calc(2 * var(--input-height));
}
input:placeholder-shown {
text-overflow: ellipsis;
}

.mat-mdc-option.suggestion.mat-mdc-option-active {
background-color: var(--color-primary-lightest);
}

0 comments on commit e5584f9

Please sign in to comment.