mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_*: fix some configurator templates
Since [1] when background shapes were extracted to configurator-specific templates, some xpath were broken. By separating the definition of the shape from the definition of the base snippet theme customization, changes between `container`, `container-fluid` and `o_container_small` are already applied before taking the shape definition into account. This commit fixes the templates which have this issue. [1]: https://github.com/odoo/design-themes/commit/d206c119720d557c11320ebb3d7339890b8f9efa task-3555325 closes odoo/design-themes#732 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/15","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container-fluid')]" position="before">
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Wavy_15"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/02_001","flip":[]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<xpath expr="//div[hasclass('o_container_small')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Origins_02_001"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
@@ -424,7 +424,7 @@
|
||||
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/07_002","flip":["x"]}</attribute>
|
||||
</xpath>
|
||||
<!-- Shape -->
|
||||
<xpath expr="//div[hasclass('container')]" position="before">
|
||||
<xpath expr="//div[hasclass('o_container_small')]" position="before">
|
||||
<div class="o_we_shape o_web_editor_Origins_07_002" style="background-image: url('/web_editor/shape/web_editor/Origins/07_002.svg?c3=o-color-4&c4=o-color-2&c5=o-color-4&flip=x'); background-position: 50% 50%;"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user