Remove some bottom padding from main div.
This removes unnecesary vertical scroll on kanban when horizontal scroll is available. It seems not affects much other sections. An other option to do this is adding more additional padding to kanban column height fixer but it reduces considerable the working zone.stable
parent
6408ab2f61
commit
9f391ac6ac
|
@ -251,11 +251,12 @@ module.directive("tgKanbanRowWidthFixer", KanbanRowWidthFixerDirective)
|
|||
|
||||
KanbanColumnHeightFixerDirective = ->
|
||||
mainPadding = 32 # px
|
||||
scrollPadding = 0 # px
|
||||
|
||||
renderSize = ($el) ->
|
||||
elementOffset = $el.parent().parent().offset().top
|
||||
windowHeight = angular.element(window).height()
|
||||
columnHeight = windowHeight - elementOffset - mainPadding
|
||||
columnHeight = windowHeight - elementOffset - mainPadding - scrollPadding
|
||||
$el.css("height", "#{columnHeight}px")
|
||||
|
||||
link = ($scope, $el, $attrs) ->
|
||||
|
|
|
@ -103,6 +103,7 @@ body {
|
|||
.main {
|
||||
@include table-flex-child(8, 600px, 0, 600px);
|
||||
padding: 2rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.icon {
|
||||
|
|
Loading…
Reference in New Issue