Skip to content

AI-native design editor. Open-source Figma alternative.

Hide panels by default on mobile

Danila Poyarkov0ba1f00e7454
diff --git a/src/stores/editor.ts b/src/stores/editor.ts
index 594bc88d5..75b64ab82 100644
--- a/src/stores/editor.ts
+++ b/src/stores/editor.ts
@@ -174,7 +174,7 @@ export function createEditorStore() {
y: number
selection?: string[]
}>,
- showUI: true,
+ showUI: matchMedia('(min-width: 768px)').matches,
documentName: 'Untitled' as string,
panX: 0,
pageColor: { ...CANVAS_BG_COLOR } as Color,