fix(ui): remove the white flash, the dead 501-900px breakpoint and the mobile scroll hijack

Measured on the live build (headless Chrome, 4 viewports):
- first paint was blank white for ~1.5 s and the right pane was empty until t=3.5 s
  -> inline html{background} in index.html + theme-color, matching both palettes
- 501-900 px still rendered the desktop component: panes 231 px wide with 7,726 px of
  resume content -> the stacked mobile component now owns everything up to 900 px
- mobile scrolled itself to the bottom on every typing tick (scrollY 611 at rest),
  hiding the resume the reader was on -> removed; the panel sits in normal flow
- the thank panel's translateZ(-200px) pulled it ~32 px up over the editor panes
  -> rotateX(-10deg) only, measured gap now +3 px instead of -32 px
- prefers-reduced-motion reduced: render the finished page instead of 10 s of typing
- 'www.hoelee.com & linkd' was autolinked as http:// -> explicit https link
- resume pane had a 9 px phantom horizontal scrollbar (vertical bar measured into
  scrollWidth) -> overflow-y auto / overflow-x hidden
This commit is contained in:
hoelee committed 2026-11-13 22:12:15 +08:00
1 parent ae0856e34e
commit 7f8ac893d0
5 files changed
+38 -9

No files matched your search

+9
View File
@@ -16,6 +16,15 @@
<meta name="twitter:title" content="Mr Hoelee — Senior Full-Stack, DevOps & AI Systems Engineer">
<meta name="twitter:description" content="Interactive animated resume of Lee Teong Hoe — Senior Full-Stack, DevOps & AI Systems Engineer.">
<title>Mr Hoelee — Senior Full-Stack, DevOps & AI Systems Engineer</title>
<!-- First paint: match the animation's own palette so the page never flashes white
before the synthetic stylesheet has been typed in. Keep these in sync with
src/config/profile.js (desktopStyles / mobileStyles html{background}). -->
<style>
html { background: #004040; color: #dedede; }
@media (max-width: 900px) { html { background: #002b36; } }
body { margin: 0; }
</style>
<meta name="theme-color" content="#004040" />
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
</head>