From fb55f688f6be2211ebeea4ba431a06230c40fb6b Mon Sep 17 00:00:00 2001
From: Antoine Guenet <age@odoo.com>
Date: Mon, 7 Nov 2022 16:32:49 +0000
Subject: [PATCH] [IMP] web_editor: align editor columns with editable bounds

Columns added with the "columns" Powerbox commands should be aligned
with the editable element's bounds.

task-3001988

closes odoo/odoo#105208

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
---
 .../js/editor/odoo-editor/src/base_style.scss  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss b/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss
index 2b13e89b82b3..b318c2c16663 100644
--- a/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss
+++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/base_style.scss
@@ -8,6 +8,24 @@ li.oe-nested {
         padding: 0.5rem;
     }
 }
+$sizes: 'xs', 'sm', 'md', 'lg', 'xl', 'xxl';
+.o_text_columns {
+    max-width: 100% !important;
+    padding: 0 !important;
+}
+.o_text_columns > .row {
+    margin: 0 !important;
+    @each $size in $sizes {
+        @for $i from 1 through 12 {
+            & > .col-#{$size}-#{$i}:first-of-type {
+                padding-left: 0;
+            }
+            & > .col-#{$size}-#{$i}:last-of-type {
+                padding-right: 0;
+            }
+        }
+    }
+}
 .oe-tabs {
     display: inline-block;
     white-space: pre-wrap;
-- 
GitLab