mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 02:33:43 +08:00
1e7c69044c
Prior: Entering `test after:5` and then removing the 5 via the search text field would result in the UI not updating After: UI updates after half a second Removing it from the UI, removes it from the search field immediately. Change the regex to detect filter words. This now matches what happens in search.rb, which gives a lot more flexibility (such as iterating over multiple `in:` terms) Return [] when searchTerm is empty Move .trim() to this.set('searchTerm', searchTerm) so it doesn't run twice (which was very obvious when watching the search term field) More refactoring to make this a bit less complex Update code based on review comments FEATURE: Add common `in:` options
45 lines
613 B
SCSS
45 lines
613 B
SCSS
.search button.btn-primary, .search button.btn {
|
|
float: none;
|
|
}
|
|
|
|
.search-advanced {
|
|
.search-advanced-options {
|
|
.control-group {
|
|
padding-bottom: 10px;
|
|
|
|
&.pull-left {
|
|
float: none;
|
|
width: auto;
|
|
}
|
|
|
|
.controls {
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
input:not([type="checkbox"]),select {
|
|
width: 75%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.search.row {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.search.row input.search {
|
|
height: 25px;
|
|
width: 69%;
|
|
}
|
|
|
|
.fps-search-context {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.fps-topic {
|
|
max-width: 75%;
|
|
}
|