thumbnail cell size back to normal

This commit is contained in:
2016-11-03 18:19:10 +01:00
parent fced741c7d
commit dad5e4ceac
3 changed files with 0 additions and 14 deletions

View File

@@ -93,4 +93,3 @@ $screen-md-max: $screen-lg-min - 1
$sidebar-width: 50px
$shots-list-thumbnail-width: 100px
$shots-list-thumbnail-height: 60px

View File

@@ -32,10 +32,6 @@
.table-body
display: table-row-group
&.has-thumbnails
.table-cell a,
.table-cell a.task-link
height: $shots-list-thumbnail-height
.table-row
position: relative

View File

@@ -97,26 +97,17 @@ script.
/* We need to find every cell matching the same classes */
same_cells = '.' + $(this).parent().attr('class').split(' ').join('.');
if ($(this).hasClass('thumbnails')){
$('.table-body').removeClass('has-thumbnails');
}
$(same_cells).hide();
/* Add the spacer which we later click to expand */
$('<div class="table-cell-spacer ' + $(this).text() + '" title="Expand ' + $(this).text() + '"></div>').insertAfter(same_cells);
});
$('body').on('click', '.table-cell-spacer', function(){
if ($(this).prev().hasClass('shot-thumbnail')){
$('.table-body').addClass('has-thumbnails');
}
/* We need to find every cell matching the same classes */
same_cells = '.' + $(this).prev().attr('class').split(' ').join('.');
$(same_cells).show();
$(same_cells).next().remove();
});
$('.table-body .table-cell').mouseenter(function(){