From fbedc9c0b91e1c80b6d94906db2f0523255e3f83 Mon Sep 17 00:00:00 2001 From: Julien Banken Date: Wed, 29 Sep 2021 13:26:17 +0000 Subject: [PATCH] [IMP] website: improve the visitor kanban card of the website module On the page 'Visitors' page of the website module (backend), the cards can be miss-aligned on small screen size. To improve the responsiveness of the cards, we will use the `col` and `col-*` classes of Bootstrap with some specific breakpoints (e.g. `col-sm-*`, `col-lg-*`, etc). We will also use flex display to reduce the number of custom css rules. task-2524363 closes odoo/odoo#73355 Signed-off-by: Thibault Delavallee (tde) --- .../src/scss/website_visitor_views.scss | 21 +------- .../website/views/website_visitor_views.xml | 48 ++++++++++--------- .../views/website_visitor_views.xml | 6 +-- .../views/website_visitor_views.xml | 15 +++--- 4 files changed, 36 insertions(+), 54 deletions(-) diff --git a/addons/website/static/src/scss/website_visitor_views.scss b/addons/website/static/src/scss/website_visitor_views.scss index ee209181a50..1946d695340 100644 --- a/addons/website/static/src/scss/website_visitor_views.scss +++ b/addons/website/static/src/scss/website_visitor_views.scss @@ -4,30 +4,11 @@ .o_wvisitor_kanban_card { width: 100%; margin: 0px; + padding: 0px; border-top: 0px !important; &:first-child { border-bottom: 1px solid #dee2e6 !important; } - .o_kanban_detail_ungrouped { - .o_wvisitor_kanban_image { - width: 56px; - height: 56px; - top: 0px; - position: absolute; - } - .o_wvisitor_name { - padding-left: 72px; - } - .w_visitor_kanban_actions_ungrouped { - button { - float: right; - margin: 4px; - } - } - .o_country_flag { - margin-right: 8px; - } - } .oe_kanban_details { display:none !important; } diff --git a/addons/website/views/website_visitor_views.xml b/addons/website/views/website_visitor_views.xml index 4119e6d9f5b..6b0b46b0b96 100644 --- a/addons/website/views/website_visitor_views.xml +++ b/addons/website/views/website_visitor_views.xml @@ -95,45 +95,47 @@
-
- Visitor - Visitor -
-
-
- -
- - +
+
+
+ Visitor + Visitor
- -
- Country +
+
+ + + +
+ +
+ Country +
-
+
Last Action
-
+
Visits
-
+
Last Page
-
+
Visited Pages
-
+