Skip to content

Commit 54415ab

Browse files
committed
separate image gallery edit from images
1 parent 4e59966 commit 54415ab

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

addons/html_builder/static/src/interactions/image_gallery.edit.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ export class ImageGalleryEdit extends Interaction {
99
},
1010
};
1111
setup() {
12-
const containerEl = this.el.querySelector(
13-
".container, .container-fluid, .o_container_small"
14-
);
15-
this.renderAt("html_builder.empty_image_gallery_alert", {}, containerEl);
12+
this.renderAt("html_builder.empty_image_gallery_alert", {}, this.el);
1613
}
1714
onAddImage() {
1815
const applySpec = { editingElement: this.el };

addons/html_builder/static/src/interactions/image_gallery.edit.xml

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<templates xml:space="preserve">
33

44
<t t-name="html_builder.empty_image_gallery_alert">
5-
<div class="alert alert-info o_empty_gallery_alert text-center o_not_editable" contentEditable="false">
6-
<i class="fa fa-plus-circle"/>
7-
<span class="o_add_images"> Add Images</span>
5+
<div class="container">
6+
<div class="alert alert-info o_empty_gallery_alert text-center o_not_editable" contentEditable="false">
7+
<i class="fa fa-plus-circle"/>
8+
<span class="o_add_images"> Add Images</span>
9+
</div>
810
</div>
911
</t>
1012

0 commit comments

Comments
 (0)