Skip to content

Commit 59833de

Browse files
SergeBayetxlu-odoo
authored andcommitted
[FIX] theme_vehicle: fix the vehicle s_picture theme layout
This commit addresses the issue with the customization of the s_picture snippet within the theme_vehicle. Previously, this snippet enforced a column height, which cannot be modified using the editor. Themes should not impose customizations that users are unable to adjust using the editor. See also : odoo/odoo#145413 task-3626753 Part-of: odoo#753
1 parent 30a5a28 commit 59833de

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

theme_vehicle/views/customizations.xml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -147,29 +147,28 @@
147147
<template id="s_picture" inherit_id="website.s_picture" name="Vehicle s_picture">
148148
<!-- Section -->
149149
<xpath expr="//section" position="attributes">
150-
<attribute name="class" add="pt0 pb0 oe_img_bg o_cc5" remove="pt48 pb24 o_cc2" separator=" "/>
150+
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
151151
</xpath>
152-
<xpath expr="//section" position="attributes">
153-
<attribute name="style" add="background-image: url(/web/image/website.s_picture_default_image); background-position: 50% 0;"/>
152+
<!-- Title -->
153+
<xpath expr="//h2" position="replace">
154+
<h2 class="text-center">View the all-new KORAN in 3D wherever you are</h2>
155+
</xpath>
156+
<!-- Paragraph -->
157+
<xpath expr="//p" position="replace" mode="inner">
158+
Bring the KORAN to life on your smartphone or tablet so you can visualise it for yourself
159+
</xpath>
160+
<!-- Image + Shape -->
161+
<xpath expr="//img" position="attributes">
162+
<attribute name="class" add="img-fluid" remove="img-thumbnail padding-large" separator=" "/>
163+
<attribute name="src">/web/image/website.s_picture_default_image</attribute>
164+
<attribute name="data-file-name">01.svg</attribute>
165+
</xpath>
166+
<xpath expr="//figcaption" position="replace" mode="inner">
167+
<span class="text-o-color-3">Our uniquely designed LED headlights are not only gorgeous but powerfully light your way.</span>
154168
</xpath>
169+
<!-- Filter -->
155170
<xpath expr="//div[hasclass('container')]" position="before">
156-
<div class="o_we_bg_filter bg-black-50"></div>
157-
</xpath>
158-
<!-- Layout -->
159-
<xpath expr="//div[hasclass('container')]" position="replace">
160-
<div class="container-fluid">
161-
<div class="row">
162-
<div class="col-lg-12 text-center d-flex flex-column" style="height: 850px;">
163-
<div class="pt40 d-flex flex-column flex-grow-1">
164-
<h2 class="text-o-color-3">View the all-new KORAN in 3D wherever you are<br/></h2>
165-
<p class="text-o-color-3">Bring the KORAN to life on your smartphone or tablet so you can visualise it for yourself.<br/></p>
166-
</div>
167-
<div class="pb40 d-flex justify-content-center align-items-end">
168-
<span class="text-o-color-3">Our uniquely designed LED headlights are not only gorgeous but powerfully light your way.<br/></span>
169-
</div>
170-
</div>
171-
</div>
172-
</div>
171+
<div class="o_we_bg_filter bg-black-50"/>
173172
</xpath>
174173
</template>
175174

0 commit comments

Comments
 (0)