Improved post search appearance on small screens

This commit is contained in:
Marcin Kurczewski
2014-10-19 13:12:11 +02:00
parent 614834c99c
commit 6788be8993
2 changed files with 13 additions and 4 deletions

View File

@ -158,8 +158,7 @@ App.Presenters.PostListPresenter = function(
if ($firstPost.length === 0) {
return;
}
$el.find('.search').css('margin-left', $firstPost.offset().left - $list.offset().left);
$el.find('.search').css('margin-right', $list.width() - ($lastPost.offset().left - $list.offset().left + $lastPost.width()));
$el.find('.search').width($lastPost.offset().left + $lastPost.width() - $firstPost.offset().left);
}
function postTagButtonClicked(e) {