mirror of
https://github.com/discourse/discourse.git
synced 2025-06-25 00:41:35 +08:00
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:
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user