From 7f8ac893d03491c36b5f91668487ad58ce1464ca Mon Sep 17 00:00:00 2001 From: Mr Hoelee Date: Fri, 13 Nov 2026 22:12:15 +0800 Subject: [PATCH] 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 --- index.html | 9 +++++++++ src/App.vue | 10 ++++++++++ src/Mobile.vue | 16 ++++++++++++---- src/config/profile.js | 8 ++++---- src/main.js | 4 +++- 5 files changed, 38 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index d6f12c7..4295d7b 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,15 @@ Mr Hoelee — Senior Full-Stack, DevOps & AI Systems Engineer + + + diff --git a/src/App.vue b/src/App.vue index 919e5fa..9adceb9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,6 +37,16 @@ } }, created() { + // Respect the OS "reduce motion" setting: render the finished page immediately + // instead of animating ~10 s of typing. + const reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches + if (reduce) { + this.currentStyle = this.styleFull + this.currentMarkdown = this.fullMarkdown + this.enableHtml = true + this.currentThankMarkdown = this.thanksMarkdown + return + } this.makeResume() }, methods: { diff --git a/src/Mobile.vue b/src/Mobile.vue index 54c0fd2..c96095e 100644 --- a/src/Mobile.vue +++ b/src/Mobile.vue @@ -31,6 +31,15 @@ } }, created() { + // Respect the OS "reduce motion" setting: render the finished page immediately. + const reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches + if (reduce) { + this.currentStyle = this.styleFull + this.currentMarkdown = this.fullMarkdown + this.enableHtml = true + this.currentThankMarkdown = this.thanksMarkdown + return + } this.makeResume() }, methods: { @@ -108,10 +117,9 @@ const showThanks = () => { if (this.currentThankMarkdown.length < length) { this.currentThankMarkdown = this.thanksMarkdown.substring(0, Math.min(length, this.currentThankMarkdown.length + cpt)) - this.$nextTick(() => { - // Keep the newly revealed thanks section in view as it grows. - window.scrollTo(0, document.body.scrollHeight) - }) + // No auto-scroll while typing: yanking the page to the bottom on every tick + // moved the resume the reader was looking at out of view. The panel sits in + // normal flow right below the resume, so the reader reaches it by scrolling. setTimeout(showThanks, interval) } else { resolve() diff --git a/src/config/profile.js b/src/config/profile.js index 7a4bdb5..b69c983 100644 --- a/src/config/profile.js +++ b/src/config/profile.js @@ -44,7 +44,7 @@ Selected Projects - Keygate Offline Software Licensing Engine — Standalone cryptographic licensing engine using Ed25519 signatures, machine hardware fingerprinting (CPU, BIOS, motherboard UUID), and anti-tamper counters with zero phone-home requirement. - Digi Kedai AI Customer-Service Agent — Telegram customer-service agent in TypeScript behind an OmniRoute model gateway, with persistent user memory (mem0), tool calling and automated payment-webhook verification, running in production on the platform above. - Property Platform with Loan Calculator (jomcarirumah.com) — Live property-agency site on WordPress with a custom repayment and instalment calculator that pre-qualifies buyers instead of funnelling them into a contact form. - - www.hoelee.com & linkd — Modern Astro 5 SSG personal hub (0 KB client JavaScript, Lighthouse mobile score 99, 0ms TBT) backed by linkd, a lightweight Node.js SQLite WAL shortlink engine with Authentik SSO admin. + - [www.hoelee.com](https://www.hoelee.com) & linkd — Modern Astro 5 SSG personal hub (0 KB client JavaScript, Lighthouse mobile score 99, 0ms TBT) backed by linkd, a lightweight Node.js SQLite WAL shortlink engine with Authentik SSO admin. - Self-Hosted Local AI Stack — GPU-passthrough Windows 11 VM on unRaid running LM Studio / llama.cpp (Qwen GGUF) for local inference, ComfyUI for image generation and whisper.cpp for speech-to-text, plus a mem0 + OmniRoute + pgvector memory and RAG stack in Docker. - Published Technical Blog (blog.hoelee.com) — 15+ posts in English and Chinese, each written out of something that actually happened: a CodeIgniter 4 migration from IIS to OpenLiteSpeed, page-by-page verification of a generated 19-page PDF, RDP brute-force hardening, a self-hosted speech-to-text server. - Client Enterprise Systems & Web Builds — Delivered 30+ production websites and business systems for SME, NGO, and e-commerce clients across full lifecycles (requirements, architecture, code, deployment, ongoing maintenance). @@ -184,7 +184,7 @@ html{ width: calc(50vw - 1em); height: 70vh; border: 1px solid; background: rgb(200,200,200); color: #222; - overflow: auto; + overflow-y: auto; overflow-x: hidden; -webkit-transition: none; transition: none; -webkit-transform: rotateY(-10deg) translateZ(-100px); @@ -308,8 +308,8 @@ html{ overflow: visible; -webkit-transition: none; transition: none; - -webkit-transform: rotateX(-10deg) translateZ(-200px); - transform: rotateX(-10deg) translateZ(-200px); + -webkit-transform: rotateX(-10deg); + transform: rotateX(-10deg); } /* keep horizontal scrolling off; allow vertical scroll when short */ diff --git a/src/main.js b/src/main.js index cd9b719..c780313 100644 --- a/src/main.js +++ b/src/main.js @@ -3,5 +3,7 @@ import App from './App.vue' import Mobile from './Mobile.vue' const width = document.documentElement.clientWidth -const app = createApp(width > 500 ? App : Mobile) +// Below ~900px the two fixed 50vw desktop panes squeeze the resume into a 230-360px +// column (measured), so tablets and landscape phones get the stacked mobile component. +const app = createApp(width > 900 ? App : Mobile) app.mount('#app')