fix(style): clamp oversized hardcoded pixel widths and fix browser test flakiness (#3785)

Closes #3770.

Add transformStylesheet rule that clips CSS width declarations exceeding the
viewport with max-width and border-box sizing. Also add @testing-library/react
to vitest browser optimizeDeps.include to prevent mid-test Vite reloads on CI.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Huang Xin
2026-04-07 13:23:30 +08:00
committed by GitHub
parent 017a9338b3
commit db35a4e203
6 changed files with 72 additions and 4 deletions