Skip to content

Commit 2c229a3

Browse files
committed
[FIX] web: center image_field buttons
The buttons in image_field are not centered vertically. Since it's a custom sized button, using flex is reliable (it's now centered on both flex axis). Note: Done in SCSS instead of utilities because the flex is there to compensate the custom size set in SCSS (easier to maintain) + there could be injected buttons in the component. task-5258887 closes odoo#238449 X-original-commit: 55c8a5a Signed-off-by: Aaron Bohy (aab) <[email protected]> Signed-off-by: Mathieu Notté (mano) <[email protected]>
1 parent bc09e19 commit 2c229a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/web/static/src/views/fields/image/image_field.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
button {
1818
transition: opacity ease 400ms;
19+
display: flex;
20+
justify-content: center;
21+
align-items: center;
1922
width: 26px;
2023
height: 26px;
2124
}

0 commit comments

Comments
 (0)