From af8ac9ef3b3e6a149db69d42457bbe493fc63eec Mon Sep 17 00:00:00 2001 From: Julien Banken Date: Tue, 28 Mar 2023 14:38:03 +0000 Subject: [PATCH] [FIX] website_event: fix position of badges in event cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the migration of Bootstrap to 5.1.3, the `col-*` elements no longer have a relative positionning. As a result, most elements having an absolute position and placed relatively to those elements will be incorrectly placed. In website_event, the badges of the event cards are currently placed on the upper border of the card because they are now placed relatively to the whole card instead of the card body container having a `col-*` class. As a result, the badges isn't where it should be and get cropped by the container. Steps to reproduce the issue: 1. Create a new event 2. Set a template 3. Go to the /event page 4. Click on the edit button from the Odoo navbar to edit the page (editor) 5. Go to the "Customize" page 6. Click on the "Templates" toggle button To fix that issue, we will add a `position-relative` class on the card body container having the `col-*` class. This ensure that the badge will be placed as before between the card body and the card image. task-3251110 closes odoo/odoo#117872 X-original-commit: 08f98194c095c541bf24d8ba55b440b189fd0766 Signed-off-by: Stéphane Debauche (std) --- addons/website_event/views/event_templates_list.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_event/views/event_templates_list.xml b/addons/website_event/views/event_templates_list.xml index 41c73d9c12c..80d584b5fc7 100644 --- a/addons/website_event/views/event_templates_list.xml +++ b/addons/website_event/views/event_templates_list.xml @@ -187,7 +187,7 @@ -