Skip to content

Commit 8ab0d1c

Browse files
committed
[FIX] theme_*: make s_picture image responsive by default
Some themes were making the s_picture image responsive on their own. It is now done generically, so the theme extensions must be removed to be able to merge. task-3266862 closes #787 X-original-commit: 08cb536 Related: odoo/odoo#157813 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent 9ca6038 commit 8ab0d1c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

theme_avantgarde/views/customizations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
We combine a wide spectrum of technologies with a good portion of creativity.
4949
</xpath>
5050
<xpath expr="//img" position="attributes">
51-
<attribute name="class" add="img-fluid" remove="img-thumbnail" separator=" "/>
51+
<attribute name="class" remove="img-thumbnail" separator=" "/>
5252
<attribute name="src">/web_editor/image_shape/website.s_picture_default_image/web_editor/composition/composition_organic_line.svg?c2=o-color-2</attribute>
5353
<attribute name="data-shape">web_editor/composition/composition_organic_line</attribute>
5454
<attribute name="data-original-mimetype">image/jpeg</attribute>

theme_cobalt/views/customizations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
<attribute name="class" add="container-fluid px-5 px-lg-0" remove="container" separator=" "/>
176176
</xpath>
177177
<xpath expr="//img" position="attributes">
178-
<attribute name="class" add="img-fluid" remove="img-thumbnail padding-large" separator=" "/>
178+
<attribute name="class" remove="img-thumbnail padding-large" separator=" "/>
179179
</xpath>
180180
<xpath expr="//figcaption" position="replace">
181181
<figcaption class="text-400"><em>Our office in Dhaka</em></figcaption>

theme_paptic/views/customizations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
</xpath>
291291
<xpath expr="//img" position="attributes">
292292
<attribute name="src">/web_editor/shape/theme_paptic/s_picture.svg?c1=o-color-1</attribute>
293-
<attribute name="class" add="img-fluid" remove="img-thumbnail" separator=" "/>
293+
<attribute name="class" remove="img-thumbnail" separator=" "/>
294294
</xpath>
295295
</template>
296296

theme_treehouse/views/snippets/s_picture.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</xpath>
1313
<!-- Image + Shape -->
1414
<xpath expr="//img" position="attributes">
15-
<attribute name="class" add="img-fluid" remove="img-thumbnail padding-large" separator=" "/>
15+
<attribute name="class" remove="img-thumbnail padding-large" separator=" "/>
1616
<attribute name="src">/web_editor/image_shape/website.s_picture_default_image/web_editor/special/special_filter.svg</attribute>
1717
<attribute name="data-file-name">01.svg</attribute>
1818
<attribute name="data-shape">web_editor/special/special_filter</attribute>

theme_vehicle/views/customizations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
</xpath>
160160
<!-- Image + Shape -->
161161
<xpath expr="//img" position="attributes">
162-
<attribute name="class" add="img-fluid" remove="img-thumbnail padding-large" separator=" "/>
162+
<attribute name="class" remove="img-thumbnail padding-large" separator=" "/>
163163
<attribute name="src">/web/image/website.s_picture_default_image</attribute>
164164
<attribute name="data-file-name">01.svg</attribute>
165165
</xpath>

0 commit comments

Comments
 (0)