summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-09-06 16:33:46 +0200
committerqsm-odoo <qsm@odoo.com>2017-09-15 15:04:52 +0200
commita8e7d096b85709ccf52411c450d0574f9238fd6f (patch)
tree29a4f4e2c9b3de835d3dbce203f8f8d439b1f704
parent2edcd1cdc0a529e51e80f962bfbb8672d4edabaf (diff)
[REF] web: adjust kanban dashboards layout
Crop long texts avoiding issues with <a> tags. Use flex to align cards' content in order to place the latest block at the end of the card.
-rw-r--r--addons/web/static/src/less/kanban_dashboard.less14
1 files changed, 14 insertions, 0 deletions
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 {