the search results tend to pad themselves with their fixed height;

remove the extra padding when there are results
This commit is contained in:
Emi Matchu 2014-04-02 14:56:37 -05:00
parent c1d9133451
commit 67d47bfc4f
2 changed files with 5 additions and 4 deletions

View file

@ -1155,7 +1155,7 @@ View.Search = function (wardrobe) {
} else {
help_el.show();
}
form.toggleClass('has-results', items.length > 0);
wrapper.toggleClass('has-results', items.length > 0);
fit();
});

View file

@ -351,12 +351,13 @@ body.outfits-edit
#preview-search
bottom: 1.5em
left: 0
margin-top: .5em
margin-bottom: 1em
overflow: auto
padding: .5em 1em
padding: 1em 2em
position: absolute
width: 100%
&.has-results
padding-bottom: 0
#footer
bottom: 0
left: 0