summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_search.scss
diff options
context:
space:
mode:
authorJonathan <jonfritz@gmail.com>2017-08-02 15:38:54 -0400
committerGitHub <noreply@github.com>2017-08-02 15:38:54 -0400
commit76bfd279b34f960149dba15424593dfd5fbfb956 (patch)
tree2aef72326ba55d0a3c162073a279286f3c0636c6 /webapp/sass/components/_search.scss
parentb796960a2514a2eb5ae900436806f343dbddf50f (diff)
downloadchat-76bfd279b34f960149dba15424593dfd5fbfb956.tar.gz
chat-76bfd279b34f960149dba15424593dfd5fbfb956.tar.bz2
chat-76bfd279b34f960149dba15424593dfd5fbfb956.zip
PLT-7140: On slow connection searching should clear RHS and show spinner (#7014)
* Added a RECEIVED_SEARCH_TERM event on search form submit, attempted to modify Search Results Header title when loading search results * Fixed RHS behaviour so that loading icon is shown while waiting for search results on slow connections. * PLT-7140: Fixed all eslint issues * PLT-7140: reverted changes to config/config.json that were accidentally committed * PLT-7140: Removed all static function decorators that I previously added to jsx files. These were suggested by eslint, but can cause issues for functions that override parent functionality. still can't reproduce the errors seen on spinmint locally, so I'm guessing at this point * PLT-7140: Changed var to const * Updating UI for search results loading (#7096)
Diffstat (limited to 'webapp/sass/components/_search.scss')
-rw-r--r--webapp/sass/components/_search.scss17
1 files changed, 11 insertions, 6 deletions
diff --git a/webapp/sass/components/_search.scss b/webapp/sass/components/_search.scss
index c9b8d4c02..4461b1da1 100644
--- a/webapp/sass/components/_search.scss
+++ b/webapp/sass/components/_search.scss
@@ -42,10 +42,6 @@
width: 40px;
}
-.search-form__container {
-
-}
-
.search__form {
position: relative;
@@ -71,15 +67,16 @@
width: 100%;
}
- .icon--refresh {
+ .fa-spin {
@include opacity(0.5);
+ font-size: 1.2em;
position: absolute;
right: 27px;
top: 27px;
.search-bar__container & {
right: 12px;
- top: 11px;
+ top: 10px;
}
}
}
@@ -93,6 +90,14 @@
position: relative;
}
+.search-items-container div.loading {
+ text-align: center;
+}
+
+.search-items-container img {
+ display: inline-block;
+}
+
.search-results-header {
border-bottom: $border-gray;
color: #999999;