thumbnail cell size back to normal
This commit is contained in:
@@ -93,4 +93,3 @@ $screen-md-max: $screen-lg-min - 1
|
|||||||
$sidebar-width: 50px
|
$sidebar-width: 50px
|
||||||
|
|
||||||
$shots-list-thumbnail-width: 100px
|
$shots-list-thumbnail-width: 100px
|
||||||
$shots-list-thumbnail-height: 60px
|
|
||||||
|
@@ -32,10 +32,6 @@
|
|||||||
|
|
||||||
.table-body
|
.table-body
|
||||||
display: table-row-group
|
display: table-row-group
|
||||||
&.has-thumbnails
|
|
||||||
.table-cell a,
|
|
||||||
.table-cell a.task-link
|
|
||||||
height: $shots-list-thumbnail-height
|
|
||||||
|
|
||||||
.table-row
|
.table-row
|
||||||
position: relative
|
position: relative
|
||||||
|
@@ -97,26 +97,17 @@ script.
|
|||||||
|
|
||||||
/* We need to find every cell matching the same classes */
|
/* We need to find every cell matching the same classes */
|
||||||
same_cells = '.' + $(this).parent().attr('class').split(' ').join('.');
|
same_cells = '.' + $(this).parent().attr('class').split(' ').join('.');
|
||||||
|
|
||||||
if ($(this).hasClass('thumbnails')){
|
|
||||||
$('.table-body').removeClass('has-thumbnails');
|
|
||||||
}
|
|
||||||
|
|
||||||
$(same_cells).hide();
|
$(same_cells).hide();
|
||||||
/* Add the spacer which we later click to expand */
|
/* Add the spacer which we later click to expand */
|
||||||
$('<div class="table-cell-spacer ' + $(this).text() + '" title="Expand ' + $(this).text() + '"></div>').insertAfter(same_cells);
|
$('<div class="table-cell-spacer ' + $(this).text() + '" title="Expand ' + $(this).text() + '"></div>').insertAfter(same_cells);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('body').on('click', '.table-cell-spacer', function(){
|
$('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 */
|
/* We need to find every cell matching the same classes */
|
||||||
same_cells = '.' + $(this).prev().attr('class').split(' ').join('.');
|
same_cells = '.' + $(this).prev().attr('class').split(' ').join('.');
|
||||||
$(same_cells).show();
|
$(same_cells).show();
|
||||||
$(same_cells).next().remove();
|
$(same_cells).next().remove();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.table-body .table-cell').mouseenter(function(){
|
$('.table-body .table-cell').mouseenter(function(){
|
||||||
|
Reference in New Issue
Block a user