odoo/o-spreadsheet#8428

Created by fw-bot
Merged at de72eb94921d54e010409e8270db543ab277d9f6

Statuses:

label
odoo:saas-18.4-18.0-fix-chart-type-picker-layout-on-hover-rmbh-517782-fw
head
a1b26fcb2516992750e50e8a54d90a53d6b9e893
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