mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-17 03:39:33 +01:00
fix(home): swap the home surface on a fold whatever width the page loaded at
Folding a phone on the home screen left the welcome screen up when the page had loaded wide (#702): the phone overview's breakpoint listener was wired from its first show, which a wide-loaded page never reaches. Both home screens' breakpoint listeners are now installed once from init() and act only while a home surface is up. A rail render queued just before the fold could also unhide the desktop rail behind the phone overview; the debounced refresh now asks again when it fires. Tests: test/home-breakpoint-listeners.test.ts (gate) and test/home-breakpoint-swap.browser.test.ts (browser suite: wide-first and narrow-first across 599/600 and 767/768, plus a height-only resize). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86502b6904
commit
7602b6db21
6 files changed
+366
-32
No files matched your search
@@ -62,6 +62,7 @@ export const BROWSER_TEST_GLOBS = [
|
||||
'test/phone-press-feedback.browser.test.ts',
|
||||
'test/desktop-connect-page.browser.test.ts', // no server: the page is served by request interception
|
||||
'test/local-model-ui.browser.test.ts',
|
||||
'test/home-breakpoint-swap.browser.test.ts',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user