From 80452a155d6b4d0c25df8ebf8232ee92fbbe12c9 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Fri, 16 Sep 2016 02:05:05 +0200
Subject: [PATCH] Fixed tiny issues in search history UI

---
 res/search.css | 11 +++++++++++
 res/search.js  |  3 +++
 2 files changed, 14 insertions(+)

diff --git a/res/search.css b/res/search.css
index bcbb152..bb855ae 100644
--- a/res/search.css
+++ b/res/search.css
@@ -424,6 +424,17 @@ nav input[type=text]:focus + #searchicon {
     white-space: nowrap;
 }
 
+#autocomplete p {
+    cursor: default;
+    line-height: 36px;
+    overflow: hidden;
+    padding: 0 24px;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+    font-style: italic;
+    color: #646464;
+}
+
 #autocomplete li .icon {
     border-radius: 12px;
     height: 24px;
diff --git a/res/search.js b/res/search.js
index bb37d60..3597879 100644
--- a/res/search.js
+++ b/res/search.js
@@ -215,6 +215,9 @@ var update_history = function () {
         container.append(render_history_item(i, history[i]));
         attach_history_item($("#history"+i));
     }
+    if (history.length == 0) {
+        container.append("<p>No search history available</p>");
+    }
 };
 
 var attach_history_item = function (elem) {
-- 
GitLab