the search results tend to pad themselves with their fixed height;
remove the extra padding when there are results
This commit is contained in:
parent
c1d9133451
commit
67d47bfc4f
2 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue