Hide editor picker dialog on mobile

Skip showing the EditorChooserModal when the viewport is narrower than
640px (the sm breakpoint), since the two-column picker layout is not
suited for mobile screens.

https://claude.ai/code/session_01RPriMsYb7BnWdbB4CnnSuW
This commit is contained in:
Claude
2026-03-03 21:57:26 +00:00
parent 82f7371fed
commit 7e02889b08
+1 -1
View File
@@ -55,7 +55,7 @@
let showEditorChooser = $state(false); let showEditorChooser = $state(false);
onMount(async () => { onMount(async () => {
showEditorChooser = shouldShowEditorChooser(); showEditorChooser = shouldShowEditorChooser() && window.innerWidth >= 640;
await initHandler(); await initHandler();
window.addEventListener('appinstalled', () => { window.addEventListener('appinstalled', () => {
logEvent('pwaInstalled', { isMobile }); logEvent('pwaInstalled', { isMobile });