h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 323 forks source link

fix: Include spacing in width for inline horizontal components #2251 #2273

Closed marek-mihok closed 4 months ago

marek-mihok commented 4 months ago

The PR fulfills these requirements: (check all the apply)

The problem was that left margin for ui.inline horizontally laid components adds to total component width causing the overflow. Since something like boxSizing: "margin-box" does not exist, the issue is fixed by replacing left margin with left padding and using boxSizing: "border-box" which accounts for both borders and paddings when calculating component dimensions.

image

This PR also includes a fix for firefox visual regression tests incompatibility with new H2O_WAVE_RECONNECT_TIMEOUT (#2252).

Solution tested across all browsers. Also both unit and visual regression tests pass.

Closes #2251