Skip to content

Commit bf65d88

Browse files
jeremymanningclaude
andcommitted
Fix map re-entry after logo-back and compact welcome for portrait phones
Reset $activeDomain to null when returning to welcome so the next "Map my knowledge" click re-triggers switchDomain. Add compact landing styles to the ≤480px portrait breakpoint so the welcome screen fits on phones without the landscape lock active. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 722e9dd commit bf65d88

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,13 @@
766766
/* Hide custom tooltips on touch devices */
767767
.ui-tooltip { display: none !important; }
768768

769+
/* ── Welcome screen: compact for small portrait screens ── */
770+
#landing { padding: 0.75rem 1rem; overflow-y: auto; }
771+
.landing-content h1 { font-size: 1.6rem; margin-bottom: 0.3rem; }
772+
.landing-content h2 { font-size: 0.85rem; margin-bottom: 0.75rem; }
773+
.landing-content p { font-size: 0.8rem; line-height: 1.4; margin-bottom: 0.5rem; }
774+
.landing-start-btn { margin-top: 0.75rem; padding: 0.6rem 1.8rem; font-size: 0.95rem; }
775+
769776
/* ── Quiz panel: compact mode buttons + auto-advance for mobile ── */
770777
.modes-wrapper { gap: 0.2rem; margin-bottom: 0.2rem; padding-bottom: 0.2rem; }
771778
.mode-btn { width: 28px; height: 28px; font-size: 0.75rem; }

src/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ async function boot() {
260260
if (landing) landing.classList.remove('hidden');
261261
if (appEl) appEl.dataset.screen = 'welcome';
262262
logo.setAttribute('data-tooltip', 'Map my knowledge!');
263+
// Reset active domain so re-entering map triggers switchDomain again
264+
$activeDomain.set(null);
263265
// Re-create particle system for the welcome screen
264266
const pCanvas = document.getElementById('particle-canvas');
265267
if (pCanvas && allDomainBundle) {

0 commit comments

Comments
 (0)