Skip to content

Commit

Permalink
fix #291
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoh committed Aug 20, 2015
1 parent 062d43b commit 783cad3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions client/src/main/webapp/WEB-INF/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1436,26 +1436,29 @@ li.public:before{
display:inline-block;
}

#search_results .as_row{
#search_results.as_row .search_result{
display:block;
width: 100%;
}


#search_results .as_row div.full{
#search_results.as_row .search_result div.full{
display:inline-block;
}

#search_results .as_row div.short{
#search_results.as_row .search_result div.short{
display:none;
}


#search_results .as_row div.thumb{
#search_results.as_row .search_result div.thumb{
width: 100%;
}
#search_results.as_row .search_result div.thumb div.img{
width: auto;
}

#search_results .as_row div.thumb > div.info{
#search_results.as_row .search_result div.thumb > div.info{
max-width: 100%;
}

Expand Down
6 changes: 3 additions & 3 deletions client/src/main/webapp/js/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ Results.prototype = {
$('#facets').css('height', h2 - 30); //30 = 2x15 padding
},
setRowStyle: function() {
$('.search_result').addClass('as_row');
$('.as_row>div.thumb>div.info').each(function() {
$('#search_results').addClass('as_row');
$('.as_row>.search_result>div.thumb>div.info').each(function() {
var w = $(this).parent().width() - $(this).prev().width() - 20;
$(this).css('width', w);
});
Expand All @@ -176,7 +176,7 @@ Results.prototype = {
$("#search_results_header>div.totals>span.total").text(numFound);
},
setThumbsStyle: function() {
$('.search_result').removeClass('as_row');
$('#search_results').removeClass('as_row');
$('.search_result>div.thumb>div.info').css('width', '');
window.location.hash = "asthumb";
}
Expand Down

0 comments on commit 783cad3

Please sign in to comment.