[FIX] website_sale: fix eCommerce categories form view mobile

This commit fixes a layout issue inside the eCommerce categories form
view on mobile devices.

Prior to this commit, a `.oe_left` class was applied to the content of
the sheet, moving it "out of the flow", resulting in a wrong sized
`form_sheet`.

To fix the issue, we remove the `.oe_left` class, we apply a `.col-md-4`
`col-lg-6` to handle the width on large devices, and add a `.pe-3` to ensure that
the labels are not placed right next to the image in mobile.

task-3847917

closes odoo/odoo#160422

X-original-commit: 6aca24b14330b7681f8307f818135bd2bf71ab08
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-04-04 08:18:56 +00:00
parent f7f2c93eb7
commit 2bb1e1eae9
+2 -2
View File
@@ -228,8 +228,8 @@
<form string="Website Public Categories">
<sheet>
<field name="image_1920" widget="image" class="oe_avatar" options="{'preview_image': 'image_128'}"/>
<div class="float-start">
<group>
<div>
<group class="col-md-4 col-lg-6 pe-3">
<field name="name"/>
<field name="parent_id"/>
<field name="website_id" options="{'no_create': True}" groups="website.group_multi_website"/>