From a8e7d096b85709ccf52411c450d0574f9238fd6f Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 6 Sep 2017 16:33:46 +0200 Subject: [PATCH] [REF] web: adjust kanban dashboards layout Crop long texts avoiding issues with tags. Use flex to align cards' content in order to place the latest block at the end of the card. --- addons/web/static/src/less/kanban_dashboard.less | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/addons/web/static/src/less/kanban_dashboard.less b/addons/web/static/src/less/kanban_dashboard.less index 2e3b7dc5e3b..7ccbdc1573a 100644 --- a/addons/web/static/src/less/kanban_dashboard.less +++ b/addons/web/static/src/less/kanban_dashboard.less @@ -180,11 +180,25 @@ } .o_kanban_card_header + .container.o_kanban_card_content { + .o-flex(1, 0, auto); + .o-flex-display(); + .o-flex-flow(column, nowrap); + .o-justify-content(space-between); margin-top: @o-kanban-dashboard-vpadding * 2; padding-right: 0; padding-left: 0; + &::before, &::after { + content: normal; // so that space-between works + } + + a { + position: relative; + .o-text-overflow(inline-block); + } + .o_kanban_primary_bottom { + margin-top: @o-kanban-dashboard-vpadding; margin-bottom: -@o-kanban-dashboard-vpadding; &.bottom_block {