odoo/o-spreadsheet#8429

Created by fw-bot
Merged at e357c8d07f235506fdf8db35d3d50f26b0ef5281

Statuses:

label
odoo:19.0-18.0-fix-chart-type-picker-layout-on-hover-rmbh-517784-fw
head
7b519ed1045c2d0a73b1ca6b3eb1cf3fccc54773
merged
5 days ago by Ronakkumar Mukeshbhai Bharadiya (rmbh)
odoo/o-spreadsheet
18.0 #8307
saas-18.2 #8426
saas-18.3 #8427
saas-18.4 #8428
19.0 #8429
saas-19.1 #8430
saas-19.2 #8432
master #8433

[FIX] side_panel: prevent chart picker layout shift on hover

Description:

Current behavior before PR:
- Hovering or selecting a chart type was adding a border while reducing padding to compensate for the size change.
- At non-100% zoom levels, fractional pixel rounding caused inconsistent sizing, leading to layout shifts in the flex container.
- This resulted in chart icons 'dancing' when moving the cursor between them.

Desired behavior after PR is merged:
- A transparent border is applied in the default state to reserve space.
- On hover/selection, only the border color is updated without changing padding.
- This ensures consistent element dimensions and prevents layout shifts across all zoom levels.

Task: 6095239

review checklist

Forward-Port-Of: #8307