From b7b4365055f47e4364eda6bb9114cdb4ba773f93 Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Fri, 8 Jul 2022 14:47:13 +0000 Subject: [PATCH] [FIX] web_editor: fix media_dialog layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since BS5 migration [1], `form-inline` and `custom-control` classes are no more available. So we use `row` and `col` instead. Also, we have unwrapped `input-group-append` has it's not more required in BS5. [2] Refs: [1] odoo/odoo#95450 [2] https://getbootstrap.com/docs/5.1/migration/#forms closes odoo/odoo#95725 Signed-off-by: Adrien Dieudonné (adr) --- .../components/media_dialog/file_selector.xml | 28 +++++++++---------- .../components/media_dialog/search_media.js | 8 ++---- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/addons/web_editor/static/src/components/media_dialog/file_selector.xml b/addons/web_editor/static/src/components/media_dialog/file_selector.xml index 3e850f57262..2fb5385cfa7 100644 --- a/addons/web_editor/static/src/components/media_dialog/file_selector.xml +++ b/addons/web_editor/static/src/components/media_dialog/file_selector.xml @@ -1,12 +1,12 @@ -
+
-
-
- +
+
+ @@ -18,22 +18,20 @@
-
- -
- -
- - - -
+ +
+ + +
-
+
diff --git a/addons/web_editor/static/src/components/media_dialog/search_media.js b/addons/web_editor/static/src/components/media_dialog/search_media.js index 64468481317..7b776a7743a 100644 --- a/addons/web_editor/static/src/components/media_dialog/search_media.js +++ b/addons/web_editor/static/src/components/media_dialog/search_media.js @@ -15,11 +15,9 @@ export class SearchMedia extends Component { } } SearchMedia.template = xml` -
+
-
-
- -
+
+
`;