From 18e06fa90aadf126602e6d2ea1fff7ef13be3a73 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Tue, 17 Dec 2019 16:31:26 +0000 Subject: [PATCH] [IMP] web: kanban content container The 'new' (read: the classes not in the 'compatibility layer section') classes of the kanban views did not allow to cleanly separate an image header from a content container. This commit adds such a container, allowing a very simple layout that should work all the time for a typical 'card with left image and right content layout': ```xml
``` Before this commit, the absence of a container for the right side meant that the top/body/bottom were flex-growed in a flex-direction: row element, appearing as 3 columns instead of rows. --- addons/web/static/src/scss/kanban_view.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/web/static/src/scss/kanban_view.scss b/addons/web/static/src/scss/kanban_view.scss index 84e52bda039..93605ab5640 100644 --- a/addons/web/static/src/scss/kanban_view.scss +++ b/addons/web/static/src/scss/kanban_view.scss @@ -58,6 +58,13 @@ width: $o-kanban-color-border-width; } + .o_kanban_record_details { + display: flex; + flex-direction: column; + justify-content: space-between; + width: 100%, + } + // Inner Sections .o_kanban_record_top, .o_kanban_record_body { margin-bottom: $o-kanban-inner-hmargin;