[FIX] hr_expense, web: fix CP buttons spacing
=== ISSUE === If you open the `Expenses` module, the buttons placed on the left inside the Control Panel have a custom margin. One of them has a `.mx-1` and another one has a custom `.gap` defined in the SCSS files. === AFTER === We remove the `.mx-1` class to replace it with a `.me-1` class, which is used across Control Panels to space buttons. We also fix a global issue with the `.o_list_buttons` inside a `.o_list_view` class, which was adding a gap defined in CSS. Since this gap is added on top of our `.me-1`, this was generating a higher value than expected for the margin. task-3330141 part of task-332626 closes odoo/odoo#122986 X-original-commit: a1d697cc32ef4f94a4a7a89c3b442f58ddb8ecea Signed-off-by: Pierre Paridans (app) <app@odoo.com>
This commit is contained in:
@@ -20,10 +20,10 @@
|
||||
<t t-name="hr_expense.KanbanButtons" t-inherit="web.KanbanView.Buttons" t-inherit-mode="primary" owl="1">
|
||||
<xpath expr="//div[hasclass('o_cp_buttons')]" position="inside">
|
||||
<input type="file" name="ufile" class="d-none" t-ref="fileInput" multiple="1" accept="*" t-on-change="onChangeFileInput" />
|
||||
<button type="button" class="d-none d-md-inline o_button_upload_expense btn btn-primary mx-1" t-on-click.prevent="uploadDocument">
|
||||
<button type="button" class="d-none d-md-inline o_button_upload_expense btn btn-primary" t-on-click.prevent="uploadDocument">
|
||||
Upload
|
||||
</button>
|
||||
<button type="button" class="d-inline d-md-none o_button_upload_expense btn btn-primary mx-1" t-on-click.prevent="uploadDocument">
|
||||
<button type="button" class="d-inline d-md-none o_button_upload_expense btn btn-primary" t-on-click.prevent="uploadDocument">
|
||||
Scan
|
||||
</button>
|
||||
</xpath>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<!-- hr.expense and hr.expense.sheet -->
|
||||
<xpath expr="//div[hasclass('o_list_buttons')]" position="inside">
|
||||
<input type="file" name="ufile" class="d-none" t-ref="fileInput" multiple="1" accept="*" t-on-change="onChangeFileInput"/>
|
||||
<button type="button" class="d-none d-md-inline o_button_upload_expense btn btn-primary mx-1" t-on-click.prevent="uploadDocument">
|
||||
<button type="button" class="d-none d-md-inline o_button_upload_expense btn btn-primary me-1" t-on-click.prevent="uploadDocument">
|
||||
Scan
|
||||
</button>
|
||||
<button t-if="displayCreateReport()" class="d-none d-md-block btn btn-secondary"
|
||||
|
||||
@@ -459,8 +459,6 @@
|
||||
}
|
||||
|
||||
.o_list_view .o_list_buttons {
|
||||
gap: 0.5rem;
|
||||
|
||||
> * {
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user