diff --git a/res/search.css b/res/search.css index bcbb15248658bdb9660ba54305ed2402abbea14b..bb855aea74942f744da760922ec08a9d66484480 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 bb37d60935e5bef322e9cf8bbb89966b141978d8..359787997bbec3a599c40aedc3939a17489ccca8 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) {