AI-native design editor. Open-source Figma alternative.
Enable Tailwind CSS class sorting in oxfmt
Danila Poyarkov9890b7c1a19b
diff --git a/.oxfmtrc.json b/.oxfmtrc.jsonindex f74a75d74..53675cfd2 100644--- a/.oxfmtrc.json+++ b/.oxfmtrc.json@@ -6,6 +6,11 @@"singleQuote": true,"printWidth": 100,"arrowParens": "always",+ "sortTailwindcss": {+ "stylesheet": "src/app.css",+ "functions": ["twMerge", "tv"],+ "preserveDuplicates": false+ },"sortImports": {"order": "asc","ignoreCase": true,diff --git a/src/components/AppMenu.vue b/src/components/AppMenu.vueindex 507388893..0baafc2f4 100644--- a/src/components/AppMenu.vue+++ b/src/components/AppMenu.vue@@ -205,7 +205,7 @@ const topMenus = [</button></div><div v-if="!IS_TAURI" class="flex items-center px-1 pb-1">- <MenubarRoot class="flex items-center gap-0.5 overflow-x-auto scrollbar-none">+ <MenubarRoot class="scrollbar-none flex items-center gap-0.5 overflow-x-auto"><MenubarMenu v-for="menu in topMenus" :key="menu.label"><MenubarTrigger:data-test-id="`menubar-${menu.label.toLowerCase()}`"diff --git a/src/components/AppSelect.vue b/src/components/AppSelect.vueindex c164ca4b3..9c4cb6fcb 100644--- a/src/components/AppSelect.vue+++ b/src/components/AppSelect.vue@@ -41,7 +41,7 @@ const modelValue = defineModel<T>({ required: true })v-for="opt in options":key="String(opt.value)":value="opt.value"- :class="selectItem({ class: 'rounded py-1.5 pl-6 pr-2 text-xs' })"+ :class="selectItem({ class: 'rounded py-1.5 pr-2 pl-6 text-xs' })"><SelectItemIndicator class="absolute left-1.5 inline-flex items-center justify-center"><icon-lucide-check class="size-3 text-accent" />diff --git a/src/components/AppToast.vue b/src/components/AppToast.vueindex 5b1f15b40..099ce040f 100644--- a/src/components/AppToast.vue+++ b/src/components/AppToast.vue@@ -15,7 +15,7 @@ const { copy, copied } = useClipboard({ copiedDuring: 1500 }):key="t.id"data-test-id="toast-item":duration="t.variant === 'error' ? 0 : toast.TOAST_DURATION"- class="flex max-w-sm items-start gap-1.5 rounded-md px-2.5 py-1.5 text-xs text-white shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in data-[state=open]:slide-in-from-top-1 data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-1 data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)] data-[swipe=cancel]:translate-y-0 data-[swipe=cancel]:transition-transform"+ class="flex max-w-sm items-start gap-1.5 rounded-md px-2.5 py-1.5 text-xs text-white shadow-md data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:slide-out-to-top-1 data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-top-1 data-[swipe=cancel]:translate-y-0 data-[swipe=cancel]:transition-transform data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)]":class="t.variant === 'error' ? 'bg-red-600' : 'bg-blue-600'"@update:open="(open) => {diff --git a/src/components/ChatPanel.vue b/src/components/ChatPanel.vueindex e8c84de8f..6b120f998 100644--- a/src/components/ChatPanel.vue+++ b/src/components/ChatPanel.vue@@ -42,7 +42,7 @@ function handleStop() {</script><template>- <div data-test-id="chat-panel" class="flex min-w-0 flex-1 select-text flex-col overflow-hidden">+ <div data-test-id="chat-panel" class="flex min-w-0 flex-1 flex-col overflow-hidden select-text"><ProviderSetup v-if="!isConfigured" /><template v-else>@@ -92,7 +92,7 @@ function handleStop() {<div ref="messagesEnd" /></div></ScrollAreaViewport>- <ScrollAreaScrollbar orientation="vertical" class="flex w-1.5 touch-none select-none p-px">+ <ScrollAreaScrollbar orientation="vertical" class="flex w-1.5 touch-none p-px select-none"><ScrollAreaThumb class="relative flex-1 rounded-full bg-muted/30" /></ScrollAreaScrollbar></ScrollAreaRoot>diff --git a/src/components/CodePanel.vue b/src/components/CodePanel.vueindex 771de6dd6..8a669b0cb 100644--- a/src/components/CodePanel.vue+++ b/src/components/CodePanel.vue@@ -84,17 +84,17 @@ watch(jsxCode, () => {<div class="p-3"><div v-for="(html, i) in highlightedLines" :key="i" class="flex text-xs leading-5"><span- class="mr-3 shrink-0 select-none text-right text-muted/40"+ class="mr-3 shrink-0 text-right text-muted/40 select-none"style="min-width: 1.5em">{{ i + 1 }}</span><pre- class="m-0 min-w-0 flex-1 whitespace-pre-wrap break-words"+ class="m-0 min-w-0 flex-1 break-words whitespace-pre-wrap"><code v-html="html" /></pre></div></div></ScrollAreaViewport>- <ScrollAreaScrollbar orientation="vertical" class="flex w-1.5 touch-none select-none p-px">+ <ScrollAreaScrollbar orientation="vertical" class="flex w-1.5 touch-none p-px select-none"><ScrollAreaThumb class="relative flex-1 rounded-full bg-white/10" /></ScrollAreaScrollbar></ScrollAreaRoot>diff --git a/src/components/CollabPanel.vue b/src/components/CollabPanel.vueindex b95260648..2502115ac 100644--- a/src/components/CollabPanel.vue+++ b/src/components/CollabPanel.vue@@ -143,7 +143,7 @@ function onDisconnect() {state.connected? 'bg-green-600 text-white hover:bg-green-700': isJoining- ? 'bg-amber-600 text-white animate-pulse'+ ? 'animate-pulse bg-amber-600 text-white': 'bg-accent text-white hover:bg-accent/90'">diff --git a/src/components/DesignPanel.vue b/src/components/DesignPanel.vueindex 1b14bc388..b96b0483a 100644--- a/src/components/DesignPanel.vue+++ b/src/components/DesignPanel.vue@@ -31,7 +31,7 @@ const isComponentType = computed(() => {<divv-if="multiCount > 1"data-test-id="design-panel-multi"- class="flex-1 overflow-x-hidden overflow-y-auto scrollbar-thin pb-4"+ class="scrollbar-thin flex-1 overflow-x-hidden overflow-y-auto pb-4"><divdata-test-id="design-multi-header"@@ -51,7 +51,7 @@ const isComponentType = computed(() => {<divv-else-if="node"data-test-id="design-panel-single"- class="flex-1 overflow-x-hidden overflow-y-auto scrollbar-thin pb-4"+ class="scrollbar-thin flex-1 overflow-x-hidden overflow-y-auto pb-4"><divdata-test-id="design-node-header"@@ -98,7 +98,7 @@ const isComponentType = computed(() => {<divv-elsedata-test-id="design-panel-empty"- class="flex-1 overflow-x-hidden overflow-y-auto scrollbar-thin pb-4"+ class="scrollbar-thin flex-1 overflow-x-hidden overflow-y-auto pb-4"><PageSection /><VariablesSection @open-dialog="variablesOpen = true" />diff --git a/src/components/EditorCanvas.vue b/src/components/EditorCanvas.vueindex 22734f09d..4bb16ecda 100644--- a/src/components/EditorCanvas.vue+++ b/src/components/EditorCanvas.vue@@ -46,7 +46,7 @@ const cursor = computed(() => {<CanvasContextMenu><divdata-test-id="canvas-area"- class="canvas-area relative flex-1 min-w-0 min-h-0 overflow-hidden"+ class="canvas-area relative min-h-0 min-w-0 flex-1 overflow-hidden"><canvasref="canvasRef"diff --git a/src/components/FontPicker.vue b/src/components/FontPicker.vueindex acd852d07..c3aae64a3 100644--- a/src/components/FontPicker.vue+++ b/src/components/FontPicker.vue@@ -67,7 +67,7 @@ function onSelect(val: string) {panelSurface({radius: 'md',padding: 'none',- class: 'z-50 flex min-w-56 w-[var(--reka-popper-anchor-width)] flex-col overflow-hidden'+ class: 'z-50 flex w-[var(--reka-popper-anchor-width)] min-w-56 flex-col overflow-hidden'})"@open-auto-focus.preventdiff --git a/src/components/LayerTree.vue b/src/components/LayerTree.vueindex ac0b04ae6..efed15c77 100644--- a/src/components/LayerTree.vue+++ b/src/components/LayerTree.vue@@ -308,7 +308,7 @@ function updateDropTarget(ev: PointerEvent) {<template><ContextMenuRoot :modal="false"><ContextMenuTrigger as-child @contextmenu="onLayerRightClick">- <div ref="listRef" class="relative flex-1 overflow-y-auto scrollbar-thin px-1">+ <div ref="listRef" class="relative scrollbar-thin flex-1 overflow-y-auto px-1"><TreeRoot:key="treeKey"v-slot="{ flattenItems }"diff --git a/src/components/LayersPanel.vue b/src/components/LayersPanel.vueindex f6ff9ea79..003876206 100644--- a/src/components/LayersPanel.vue+++ b/src/components/LayersPanel.vue@@ -30,7 +30,7 @@ import PagesPanel from './PagesPanel.vue'<SplitterPanel :default-size="70" :min-size="20" class="flex flex-col overflow-hidden"><headerdata-test-id="layers-header"- class="shrink-0 px-3 py-2 text-[11px] uppercase tracking-wider text-muted"+ class="shrink-0 px-3 py-2 text-[11px] tracking-wider text-muted uppercase">Layers</header>diff --git a/src/components/MobileDrawer.vue b/src/components/MobileDrawer.vueindex 78652bf04..1537630fe 100644--- a/src/components/MobileDrawer.vue+++ b/src/components/MobileDrawer.vue@@ -112,7 +112,7 @@ const drawerTransition = {<template><motion.divdata-test-id="mobile-drawer"- class="fixed inset-x-0 bottom-0 z-30 flex touch-none flex-col rounded-t-3xl bg-panel shadow-[0_-2px_10px_rgba(0,0,0,0.3)] pb-[env(safe-area-inset-bottom)]"+ class="fixed inset-x-0 bottom-0 z-30 flex touch-none flex-col rounded-t-3xl bg-panel pb-[env(safe-area-inset-bottom)] shadow-[0_-2px_10px_rgba(0,0,0,0.3)]":animate="{ height: `${targetHeight}px` }":transition="drawerTransition"@pan="onPan"@@ -127,7 +127,7 @@ const drawerTransition = {<TabsTriggerdata-test-id="mobile-ribbon-layers"value="layers"- class="flex h-full cursor-pointer items-center justify-center gap-1.5 px-4 text-xs outline-none transition-colors select-none data-[state=active]:text-accent"+ class="flex h-full cursor-pointer items-center justify-center gap-1.5 px-4 text-xs transition-colors outline-none select-none data-[state=active]:text-accent"@click="toggleTab('layers')"><icon-lucide-layers class="size-4" />@@ -136,7 +136,7 @@ const drawerTransition = {<TabsTriggerdata-test-id="mobile-ribbon-design"value="design"- class="flex h-full cursor-pointer items-center justify-center gap-1.5 px-4 text-xs outline-none transition-colors select-none data-[state=active]:text-accent"+ class="flex h-full cursor-pointer items-center justify-center gap-1.5 px-4 text-xs transition-colors outline-none select-none data-[state=active]:text-accent"@click="toggleTab('design')"><icon-lucide-sliders-horizontal class="size-4" />@@ -147,7 +147,7 @@ const drawerTransition = {<TabsTriggerdata-test-id="mobile-ribbon-code"value="code"- class="flex h-full cursor-pointer items-center justify-center px-3 outline-none transition-colors select-none data-[state=active]:text-accent"+ class="flex h-full cursor-pointer items-center justify-center px-3 transition-colors outline-none select-none data-[state=active]:text-accent"@click="toggleTab('code')"><icon-lucide-code class="size-4" />@@ -156,7 +156,7 @@ const drawerTransition = {<TabsTriggerdata-test-id="mobile-ribbon-ai"value="ai"- class="flex h-full cursor-pointer items-center justify-center px-3 outline-none transition-colors select-none data-[state=active]:text-accent"+ class="flex h-full cursor-pointer items-center justify-center px-3 transition-colors outline-none select-none data-[state=active]:text-accent"@click="toggleTab('ai')"><icon-lucide-sparkles class="size-4" />@@ -169,7 +169,7 @@ const drawerTransition = {<div data-test-id="mobile-drawer-layers" class="flex h-full flex-col"><PagesPanel /><div class="border-t border-border" />- <header class="shrink-0 px-3 py-2 text-[11px] uppercase tracking-wider text-muted">+ <header class="shrink-0 px-3 py-2 text-[11px] tracking-wider text-muted uppercase">Layers</header><LayerTree class="min-h-0 flex-1" />diff --git a/src/components/MobileHud.vue b/src/components/MobileHud.vueindex 68c87675f..e8c0aa9cf 100644--- a/src/components/MobileHud.vue+++ b/src/components/MobileHud.vue@@ -132,7 +132,7 @@ const onlineCount = computed(() => collabPeers.length + 1)align="center"class="z-50 w-56 rounded-xl border border-border bg-panel p-3 shadow-xl">- <div class="mb-2 text-[11px] uppercase tracking-wider text-muted">In this room</div>+ <div class="mb-2 text-[11px] tracking-wider text-muted uppercase">In this room</div><div class="flex flex-col gap-2"><div class="flex items-center gap-2"><div@@ -187,7 +187,7 @@ const onlineCount = computed(() => collabPeers.length + 1):key="store.state.actionToast"class="flex h-8 items-center rounded-full border border-accent/20 bg-panel/70 px-3 shadow-md backdrop-blur-xl">- <span class="whitespace-nowrap text-xs text-accent">{{ store.state.actionToast }}</span>+ <span class="text-xs whitespace-nowrap text-accent">{{ store.state.actionToast }}</span></div></Transition></div>diff --git a/src/components/PagesPanel.vue b/src/components/PagesPanel.vueindex 9295218c7..2e6e4e692 100644--- a/src/components/PagesPanel.vue+++ b/src/components/PagesPanel.vue@@ -40,7 +40,7 @@ function startRename(pg: { id: string; name: string }) {<template><div data-test-id="pages-panel" class="flex min-h-0 flex-1 flex-col"><div class="flex shrink-0 items-center justify-between px-3 py-1.5">- <span data-test-id="pages-header" class="text-[11px] uppercase tracking-wider text-muted"+ <span data-test-id="pages-header" class="text-[11px] tracking-wider text-muted uppercase">Pages</span><button@@ -52,7 +52,7 @@ function startRename(pg: { id: string; name: string }) {+</button></div>- <div class="overflow-x-hidden overflow-y-auto scrollbar-thin px-1 pb-1">+ <div class="scrollbar-thin overflow-x-hidden overflow-y-auto px-1 pb-1"><div v-for="pg in pages" :key="pg.id"><divv-if="rename.editingId.value === pg.id"diff --git a/src/components/ScrubInput.vue b/src/components/ScrubInput.vueindex f42e701e0..3a4446f10 100644--- a/src/components/ScrubInput.vue+++ b/src/components/ScrubInput.vue@@ -113,12 +113,12 @@ function onKeydown(e: KeyboardEvent) {<template><divdata-test-id="scrub-input"- class="flex min-w-0 flex-1 items-center rounded border border-border bg-input h-[26px] focus-within:border-accent"+ class="flex h-[26px] min-w-0 flex-1 items-center rounded border border-border bg-input focus-within:border-accent":style="{ cursor: editing ? 'auto' : 'ew-resize' }"@pointerdown="!editing && startScrub($event)"><span- class="flex shrink-0 select-none items-center justify-center self-stretch px-[5px] text-muted [&>*]:pointer-events-none"+ class="flex shrink-0 items-center justify-center self-stretch px-[5px] text-muted select-none [&>*]:pointer-events-none"><slot name="icon"><span v-if="icon" class="text-[11px] leading-none">{{ icon }}</span>@@ -141,7 +141,7 @@ function onKeydown(e: KeyboardEvent) {/><spanv-else- class="flex flex-1 select-none items-center truncate pr-1.5 text-xs overflow-hidden"+ class="flex flex-1 items-center truncate overflow-hidden pr-1.5 text-xs select-none"><span v-if="isMixed" class="flex-1 text-muted">{{ placeholder }}</span><template v-else>diff --git a/src/components/TabBar.vue b/src/components/TabBar.vueindex c5a5e24bf..7014a5960 100644--- a/src/components/TabBar.vue+++ b/src/components/TabBar.vue@@ -29,7 +29,7 @@ function onClose(e: MouseEvent, tabId: string) {v-if="tabs.length > 1"v-model="modelValue"activation-mode="automatic"- class="flex h-9 shrink-0 items-end overflow-x-auto border-b border-border bg-[#1e1e1e] scrollbar-none"+ class="scrollbar-none flex h-9 shrink-0 items-end overflow-x-auto border-b border-border bg-[#1e1e1e]"><TabsList class="flex h-full items-end"><TabsTrigger@@ -37,14 +37,14 @@ function onClose(e: MouseEvent, tabId: string) {:key="tab.id":value="tab.id"data-test-id="tabbar-tab"- class="group/tab flex h-full max-w-48 min-w-0 cursor-pointer items-center gap-1.5 border-r border-border px-3 text-xs transition-colors select-none outline-none focus-visible:ring-1 focus-visible:ring-accent data-[state=active]:bg-panel data-[state=active]:text-surface data-[state=inactive]:text-muted data-[state=inactive]:hover:text-surface"+ class="group/tab flex h-full max-w-48 min-w-0 cursor-pointer items-center gap-1.5 border-r border-border px-3 text-xs transition-colors outline-none select-none focus-visible:ring-1 focus-visible:ring-accent data-[state=active]:bg-panel data-[state=active]:text-surface data-[state=inactive]:text-muted data-[state=inactive]:hover:text-surface"@mousedown="onMiddleClick($event, tab.id)"><icon-lucide-file class="size-3 shrink-0 opacity-50" /><span class="min-w-0 flex-1 truncate">{{ tab.name }}</span><buttondata-test-id="tabbar-close"- class="flex size-4 shrink-0 cursor-pointer items-center justify-center rounded opacity-0 transition-opacity hover:bg-hover group-hover/tab:opacity-100 data-[state=active]:opacity-100"+ class="flex size-4 shrink-0 cursor-pointer items-center justify-center rounded opacity-0 transition-opacity group-hover/tab:opacity-100 hover:bg-hover data-[state=active]:opacity-100":class="tab.isActive ? 'opacity-100' : ''":title="`Close ${tab.name}`":aria-label="`Close ${tab.name}`"diff --git a/src/components/VariablesDialog.vue b/src/components/VariablesDialog.vueindex 23c4d3fb5..2e227f855 100644--- a/src/components/VariablesDialog.vue+++ b/src/components/VariablesDialog.vue@@ -389,7 +389,7 @@ const table = useVueTable({<DialogOverlay class="fixed inset-0 z-40 bg-black/50" /><DialogContentdata-test-id="variables-dialog"- class="fixed left-1/2 top-1/2 z-50 flex h-[75vh] w-[800px] max-w-[90vw] -translate-x-1/2 -translate-y-1/2 flex-col rounded-xl border border-border bg-panel shadow-2xl outline-none"+ class="fixed top-1/2 left-1/2 z-50 flex h-[75vh] w-[800px] max-w-[90vw] -translate-x-1/2 -translate-y-1/2 flex-col rounded-xl border border-border bg-panel shadow-2xl outline-none"><div v-if="collections.length === 0" class="flex flex-1 flex-col"><div class="flex shrink-0 items-center justify-between border-b border-border px-4 py-3">@@ -433,7 +433,7 @@ const table = useVueTable({v-else:value="col.id"data-test-id="variables-collection-tab"- class="cursor-pointer whitespace-nowrap rounded border-none px-2.5 py-1 text-xs text-muted data-[state=active]:bg-hover data-[state=active]:text-surface"+ class="cursor-pointer rounded border-none px-2.5 py-1 text-xs whitespace-nowrap text-muted data-[state=active]:bg-hover data-[state=active]:text-surface"@dblclick="startRenameCollection(col.id)">{{ col.name }}@@ -499,7 +499,7 @@ const table = useVueTable({<!-- Resize handle --><divv-if="header.column.getCanResize()"- class="absolute top-0 right-0 h-full w-1 cursor-col-resize select-none touch-none"+ class="absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none":class="header.column.getIsResizing()? 'bg-accent'diff --git a/src/components/chat/ChatMessage.vue b/src/components/chat/ChatMessage.vueindex 9c3f51ee0..0d9688019 100644--- a/src/components/chat/ChatMessage.vue+++ b/src/components/chat/ChatMessage.vue@@ -85,7 +85,7 @@ function partKey(part: UIMessagePart, index: number): string {</CollapsibleTrigger><CollapsibleContentv-if="toolState(part) !== 'pending'"- class="overflow-hidden text-[10px] data-[state=closed]:collapsible-up data-[state=open]:collapsible-down"+ class="data-[state=closed]:collapsible-up data-[state=open]:collapsible-down overflow-hidden text-[10px]"><pre class="mt-1 overflow-x-auto rounded bg-input p-2 text-muted">{{part.state === 'output-error' && part.errorText@@ -113,7 +113,7 @@ function partKey(part: UIMessagePart, index: number): string {<divv-else-if="message.role === 'user'"data-test-id="chat-text-bubble"- class="whitespace-pre-wrap rounded-xl rounded-br-md bg-accent px-3 py-2 text-xs leading-relaxed text-white"+ class="rounded-xl rounded-br-md bg-accent px-3 py-2 text-xs leading-relaxed whitespace-pre-wrap text-white">{{message.partsdiff --git a/src/components/properties/AppearanceSection.vue b/src/components/properties/AppearanceSection.vueindex f89603b6a..be5697f71 100644--- a/src/components/properties/AppearanceSection.vue+++ b/src/components/properties/AppearanceSection.vue@@ -27,7 +27,8 @@ const hasCornerRadius = computed(() => {const visibilityState = computed(() => {const v = merged('visible')- return v === MIXED ? 'mixed' : (v ? 'visible' : 'hidden')+ if (v === MIXED) return 'mixed'+ return v ? 'visible' : 'hidden'})function toggleVisibility() {diff --git a/src/components/ui/button.ts b/src/components/ui/button.tsindex bb126fb2c..2eca2e856 100644--- a/src/components/ui/button.ts+++ b/src/components/ui/button.ts@@ -8,7 +8,7 @@ const button = tv({ghost: 'bg-transparent text-muted hover:bg-hover hover:text-surface',accent: 'bg-accent text-white hover:bg-accent/90',panel: 'bg-panel/70 text-surface backdrop-blur-xl',- panelAccent: 'bg-panel/70 text-accent border-accent/20 backdrop-blur-xl'+ panelAccent: 'border-accent/20 bg-panel/70 text-accent backdrop-blur-xl'},shape: {square: 'rounded',diff --git a/src/components/ui/menu.ts b/src/components/ui/menu.tsindex a2e847a92..f6e04ee66 100644--- a/src/components/ui/menu.ts+++ b/src/components/ui/menu.ts@@ -6,12 +6,12 @@ const content = tv({})const item = tv({- base: 'flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-xs outline-none select-none data-[highlighted]:bg-hover data-[disabled]:cursor-default data-[disabled]:text-muted/50',+ base: 'flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-xs outline-none select-none data-[disabled]:cursor-default data-[disabled]:text-muted/50 data-[highlighted]:bg-hover',variants: {tone: {default: 'text-surface',component:- 'text-[#9747ff] data-[highlighted]:bg-[#9747ff]/12 data-[disabled]:text-[#9747ff]/40'+ 'text-[#9747ff] data-[disabled]:text-[#9747ff]/40 data-[highlighted]:bg-[#9747ff]/12'},justify: {between: 'justify-between gap-6',diff --git a/src/stores/editor.ts b/src/stores/editor.tsindex dfa801015..2e1f33080 100644--- a/src/stores/editor.ts+++ b/src/stores/editor.ts@@ -1090,7 +1090,7 @@ export function createEditorStore() {const parentAbs = isTopLevel(parentId) ? { x: 0, y: 0 } : graph.getAbsolutePosition(parentId)const direction: LayoutMode =- nodes.length <= 1 ? 'VERTICAL' : (maxX - minX >= maxY - minY ? 'HORIZONTAL' : 'VERTICAL')+ nodes.length <= 1 || maxY - minY > maxX - minX ? 'VERTICAL' : 'HORIZONTAL'const frame = graph.createNode('FRAME', parentId, {name: 'Frame',diff --git a/src/views/EditorView.vue b/src/views/EditorView.vueindex 313ab8b45..00a62fdfd 100644--- a/src/views/EditorView.vue+++ b/src/views/EditorView.vue@@ -128,7 +128,7 @@ useHead({ title: route.meta.demo ? 'Demo' : undefined })<EditorCanvas /><divv-if="!isMobile"- class="absolute left-7 top-7 z-10 flex items-center gap-2 rounded-lg border border-border bg-panel px-2 py-1 shadow-sm"+ class="absolute top-7 left-7 z-10 flex items-center gap-2 rounded-lg border border-border bg-panel px-2 py-1 shadow-sm"><img src="/favicon-32.png" class="size-4" alt="OpenPencil" /><span data-test-id="editor-document-name" class="text-xs text-surface">{{