From 9f391ac6acf0b30155a50a26c1afc183c18517c8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 12 Sep 2014 20:48:13 +0200 Subject: [PATCH] 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. --- app/coffee/modules/kanban/main.coffee | 3 ++- app/styles/layout/base.scss | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/kanban/main.coffee b/app/coffee/modules/kanban/main.coffee index e6926b6b..932f47a3 100644 --- a/app/coffee/modules/kanban/main.coffee +++ b/app/coffee/modules/kanban/main.coffee @@ -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) -> diff --git a/app/styles/layout/base.scss b/app/styles/layout/base.scss index 935eae32..1c128cec 100644 --- a/app/styles/layout/base.scss +++ b/app/styles/layout/base.scss @@ -103,6 +103,7 @@ body { .main { @include table-flex-child(8, 600px, 0, 600px); padding: 2rem; + padding-bottom: 1rem; } .icon {