Skip to content

Commit

Permalink
[FIX] theme_nano: remove breaking container padding removals
Browse files Browse the repository at this point in the history
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#511

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
  • Loading branch information
qsm-odoo committed Oct 5, 2021
1 parent 0539787 commit 2ed70c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion theme_nano/views/snippets/s_image_text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion theme_nano/views/snippets/s_images_wall.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion theme_nano/views/snippets/s_text_image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion theme_nano/views/snippets/s_three_columns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 2ed70c9

Please sign in to comment.