Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix(docs): hide minimap by default on mobile screens' (#317) from feat/minimap-mobile-default into main

scott 309a3b3e 572ecea6

+4 -1
+4 -1
src/docs/sidebar-wiring.ts
··· 265 265 const minimapHeadingsEl = document.getElementById('minimap-headings') as HTMLElement; 266 266 const toggleBtn = document.getElementById('btn-minimap') as HTMLElement | null; 267 267 268 - let minimapEnabled = localStorage.getItem(MINIMAP_STORAGE_KEY) !== 'false'; 268 + const savedPref = localStorage.getItem(MINIMAP_STORAGE_KEY); 269 + // Default to off on mobile (< 768px), on for desktop — respect explicit user choice 270 + const defaultEnabled = window.innerWidth >= 768; 271 + let minimapEnabled = savedPref !== null ? savedPref !== 'false' : defaultEnabled; 269 272 270 273 function updateToggleBtn(): void { 271 274 if (toggleBtn) toggleBtn.classList.toggle('active', minimapEnabled);