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:
1 parent
ae0856e34e
commit
7f8ac893d0
5 files changed
+38
-9
No files matched your search
+12
-4
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user