[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 odoo/design-themes#784

Related: odoo/odoo#157808
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2024-03-15 18:25:49 +01:00
parent 45e9374699
commit 08cb536b02
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
We combine a wide spectrum of technologies with a good portion of creativity.
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="class" add="img-fluid" remove="img-thumbnail" separator=" "/>
<attribute name="class" remove="img-thumbnail" separator=" "/>
<attribute name="src">/web_editor/image_shape/website.s_picture_default_image/web_editor/composition/composition_organic_line.svg?c2=o-color-2</attribute>
<attribute name="data-shape">web_editor/composition/composition_organic_line</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
+1 -1
View File
@@ -193,7 +193,7 @@
<attribute name="class" add="container-fluid px-5 px-lg-0" remove="container" separator=" "/>
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="class" add="img-fluid" remove="img-thumbnail padding-large" separator=" "/>
<attribute name="class" remove="img-thumbnail padding-large" separator=" "/>
</xpath>
<xpath expr="//figcaption" position="replace">
<figcaption class="text-400"><em>Our office in Dhaka</em></figcaption>
+1 -1
View File
@@ -290,7 +290,7 @@
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/shape/theme_paptic/s_picture.svg?c1=o-color-1</attribute>
<attribute name="class" add="img-fluid" remove="img-thumbnail" separator=" "/>
<attribute name="class" remove="img-thumbnail" separator=" "/>
</xpath>
</template>
+1 -1
View File
@@ -12,7 +12,7 @@
</xpath>
<!-- Image + Shape -->
<xpath expr="//img" position="attributes">
<attribute name="class" add="img-fluid" remove="img-thumbnail padding-large" separator=" "/>
<attribute name="class" remove="img-thumbnail padding-large" separator=" "/>
<attribute name="src">/web_editor/image_shape/website.s_picture_default_image/web_editor/special/special_filter.svg</attribute>
<attribute name="data-file-name">01.svg</attribute>
<attribute name="data-shape">web_editor/special/special_filter</attribute>