[FIX] theme_nano: remove breaking container padding removals

Removing the container padding in some cases may be fine but cannot
be done because would create horizontal scrollbars in full-width mode
or simply on mobile devices.

To further improve with task-2241779

closes odoo/design-themes#511

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2021-10-04 13:01:00 +00:00
parent 0539787e23
commit 2ed70c99c9
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<attribute name="class" add="o_cc o_cc5 pt48 pb48" remove="pt32 pb32" separator=" "/>
</xpath>
<xpath expr="//*[hasclass('container')]" position="attributes">
<attribute name="class" add="container-fluid px-0" remove="container" separator=" "/>
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
</xpath>
<!-- Image + Shape -->
<xpath expr="//img" position="attributes">
+1 -1
View File
@@ -8,7 +8,7 @@
</xpath>
<!-- Content -->
<xpath expr="//*[hasclass('container')]" position="attributes">
<attribute name="class" add="container-fluid px-0" remove="container" separator=" "/>
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
</xpath>
</template>
+1 -1
View File
@@ -7,7 +7,7 @@
<attribute name="class" add="o_cc o_cc5 pt48 pb48" remove="pt32 pb32" separator=" "/>
</xpath>
<xpath expr="//*[hasclass('container')]" position="attributes">
<attribute name="class" add="container-fluid px-0" remove="container" separator=" "/>
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
</xpath>
<!-- Image + Shape -->
<xpath expr="//img" position="attributes">
@@ -7,7 +7,7 @@
<attribute name="class" add="o_cc5 pt64 pb64" remove="o_cc2 pt32 pb32" separator=" "/>
</xpath>
<xpath expr="//*[hasclass('container')]" position="attributes">
<attribute name="class" add="container-fluid px-0" remove="container" separator=" "/>
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
</xpath>
<!-- Column #01 -->
<xpath expr="//*[hasclass('card-title')]" position="replace" mode="inner">