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:
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user