From 6ae79ca50b7fb2ec6fe473d75c54b38bea85ec46 Mon Sep 17 00:00:00 2001 From: fkloft Date: Thu, 12 Feb 2015 15:50:53 +0100 Subject: [PATCH] set max-height for search results --- code/search.js | 2 +- style.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/search.js b/code/search.js index 1f9f4438..34862507 100644 --- a/code/search.js +++ b/code/search.js @@ -37,7 +37,7 @@ window.search.Query = function(term, confirmed) { window.search.Query.prototype.init = function() { this.results = []; - this.container = $('
'); + this.container = $('
').addClass('searchquery'); this.header = $('

') .text(this.confirmed diff --git a/style.css b/style.css index 6e6d1091..c187dd5c 100644 --- a/style.css +++ b/style.css @@ -520,6 +520,10 @@ input[type="search"], input[type="url"] { height: auto; cursor: pointer; } +.searchquery { + max-height: 25em; + overflow-y: auto; +} #searchwrapper .ui-accordion-header::before { font-size: 18px; margin-right: 2px;