UX: search dropdown layout improvements (#31568)

This change improves the alignment and placement of the search spinner
and icons (ie. clear search / advanced search). Having a fixed width on
desktop prevents the search field from changing width when the loading
icon is toggled.
This commit is contained in:
David Battersby
2025-03-03 09:36:53 +04:00
committed by GitHub
parent 8615fc6cbb
commit 081a0159d8
2 changed files with 3 additions and 10 deletions

View File

@ -382,13 +382,12 @@ $search-pad-horizontal: 0.5em;
width: 12px;
height: 12px;
border-width: 2px;
margin: 0;
margin: 0 0.5em 0.25em 0;
margin-top: 2px;
}
.show-advanced-search,
a.clear-search {
padding: 0 3px;
display: inline-block;
background-color: transparent;

View File

@ -72,20 +72,14 @@
}
.searching {
display: flex;
padding-right: 0.5rem;
width: 3em;
justify-content: flex-end;
.show-advanced-search,
a.clear-search {
display: inline-flex;
align-items: center;
}
.spinner-holder {
display: inline-block;
vertical-align: top;
margin-left: 4px;
}
}
.search-icon {