From c2503cab34c1abe3e0ab9de2ac2321a42db8989c Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 30 Dec 2015 21:27:48 +0100 Subject: jetzt sind bilder auch in firefox (hoffentlich) zentriert diff --git a/assets/css/search.css b/assets/css/search.css index e76a7d1..124a378 100644 --- a/assets/css/search.css +++ b/assets/css/search.css @@ -2,6 +2,10 @@ min-height: 64px !important; } +.collection-item.avatar > .circle { + top: 12px; +} + .search-results { top: -50px; z-index: 2; diff --git a/assets/js/search.js b/assets/js/search.js index 5f81eb1..a376166 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -21,7 +21,7 @@ function doSearch() { document.getElementById("search-results").innerHTML = ''; return } - document.getElementById("search-results").innerHTML = xhr.response.replace(new RegExp(value, 'g'), "" + value + ""); + document.getElementById("search-results").innerHTML = xhr.response.replace(new RegExp(value, 'gi'), "" + value + ""); } } xhr.open('GET', '/search/gril_instant/' + value, true); diff --git a/views/instant_search_results.html b/views/instant_search_results.html index 0472879..914b271 100644 --- a/views/instant_search_results.html +++ b/views/instant_search_results.html @@ -2,7 +2,7 @@ {{ range .results }}
  • - {{ .Name }} + {{ .Name }}
  • {{ end }} {{ end }} \ No newline at end of file -- cgit v0.10.1