You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(wasm): frontend page overflows 40px and the title never scales (mirror of zackees/fastled-wasm#268) #4420
Companion to FastLED/cli#268, which carries the full diagnosis, measurements and screenshots.
src/platforms/wasm/compiler/index.css has two rules that are byte-identical to the fastled-wasm frontend's, and they cause the same layout bug:
The page is always 40 px wider than the window.#main-container is box-sizing: content-box with width: 100% plus padding: 20px, so every viewport narrower than about 1440 CSS px overflows horizontally and #ui-controls is pushed off the right edge.
The title never scales.h1 { font-size: 6em; margin-top: 10vh } is a fixed 96 px at every viewport, and no media query touches it.
The FastLED copy is still live: ci/wasm_build.py bootstraps from src/platforms/wasm/compiler/index.ts. Users running the fastled CLI get fastled-wasm's copy instead, which is why the primary fix lands there.
At a sub-1440 px viewport, document.documentElement.scrollWidth <= innerWidth and #ui-controls lies inside the viewport. Show it failing before the change (40 px overflow) and passing after.
Activity
fix(wasm): stop the frontend page overflowing and let the title scale (…