Quellcode durchsuchen

fix: fixed search issues with in active mode and keyboard nav

Torkel Ödegaard vor 8 Jahren
Ursprung
Commit
8440d2d0a2

+ 1 - 1
public/app/core/components/search/search.ts

@@ -77,7 +77,7 @@ export class SearchCtrl {
       this.moveSelection(-1);
     }
     if (evt.keyCode === 13) {
-      if (this.$scope.tagMode) {
+      if (this.tagsMode) {
         var tag = this.results[this.selectedIndex];
         if (tag) {
           this.filterByTag(tag.term, null);

+ 2 - 5
public/sass/components/_search.scss

@@ -122,14 +122,11 @@
       content: "\f015";
     }
 
-    &:hover {
+    &:hover,
+    &.selected {
       background-color: $tight-form-func-bg;
       @include left-brand-border-gradient();
     }
-
-    &.selected {
-      background-color: $grafanaListBackground;
-    }
   }
 
   .search-result-tags {

+ 1 - 1
public/sass/components/_view_states.scss

@@ -51,7 +51,7 @@
   .navbar-page-btn {
     border-color: transparent;
     background: transparent;
-    transform: translate3d(-95px, 0, 0);
+    transform: translate3d(-50px, 0, 0);
     transition: all 1.5s ease-in-out 1s;
     .icon-gf {
       opacity: 0;