From bf94c8ee743ff5b40512a9b2de6ce5bd3d1bfd23 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Mon, 29 Jun 2015 17:32:51 +0200 Subject: [PATCH] [FIX] web_kanban: alignment of kanban_record with the control panel --- .../static/src/less/kanban_dashboard.less | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/addons/web_kanban/static/src/less/kanban_dashboard.less b/addons/web_kanban/static/src/less/kanban_dashboard.less index 61df77edcd0..93ea44dae7f 100644 --- a/addons/web_kanban/static/src/less/kanban_dashboard.less +++ b/addons/web_kanban/static/src/less/kanban_dashboard.less @@ -12,10 +12,16 @@ } } - &.o_kanban_dashboard { + &.o_kanban_dashboard.o_kanban_ungrouped { .o_visible { width: 100%; + + /* This is a hack ; without this, a scrollbar appears + * to scroll horizontally because of inline-block and width: 100%, + * but they are both necessary. + */ + overflow: hidden; } /* This is a hack but this is the least ugly way to do it: @@ -33,6 +39,7 @@ padding-right: 0px !important; margin-left: 0px !important; margin-right: 0px !important; + overflow: hidden; * { padding-left: 0px !important; @@ -62,7 +69,11 @@ .o_kanban_record { padding: 0; position: relative; - margin: 4px 8px; + margin-right: 16px; + @media (max-width: @grid-float-breakpoint) { + margin-bottom: 10px; + margin-right: 0px; + } } a { @@ -142,5 +153,9 @@ border-top-style: solid; border-top-width: 1px; } + + .oe_kanban_colorpicker { + height: 20px; + } } } \ No newline at end of file