From ee503c338f3efbe4e8fcca72bd6343c06dab24d0 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Sun, 31 May 2026 19:54:07 +0800 Subject: [PATCH] =?UTF-8?q?gui:=20fix=20layout=20=E2=80=94=20full=20viewpo?= =?UTF-8?q?rt,=20dark=20theme,=20sidebar+main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: UI appeared as narrow dark panel on white background with scrollbar. Root causes: - html/body had no reset — default browser margin/padding = white borders - index.html referenced non-existent /style.css - .app used height:100vh but no width:100vw or overflow:hidden - sidebar used fixed width instead of flexbox Fixed: - index.html: added critical CSS reset (html/body/#app = 100%, margin:0, overflow:hidden, dark bg) - index.html: removed /style.css ref, changed lang to ru, title to Верстак - App.svelte: complete layout rewrite - .app = flex, 100vw x 100vh, overflow:hidden - sidebar = 260px width, full height, flex column - main = flex:1, full height, flex column (header + content) - sidebar nav with sections + nodes using + {/each} + + + + + + + + + +
+ +
+
+ {#if selectedNode} + {selectedNode.title} + {:else if selectedSection} + {#each sections as section}{section.id === selectedSection ? section.label : ''}{/each} + {:else} + Выберите раздел или дело + {/if} +
+
+ +
Поиск...
+
+
+ + + {#if error} +
+ Wails bindings: {error} +
+ {/if} + +
{#if selectedNode}

{selectedNode.title}

-

ID: {selectedNode.id}

-

Type: {selectedNode.type}

+
+ ID: {selectedNode.id} + Type: {selectedNode.type} +
{:else if sections.length > 0}
-

Wails v2 Desktop GUI работает.

-

Sections: {sections.length}, Root nodes: {nodes.length}

+

Верстак

+

Разделы: {sections.length} · Дел: {nodes.length}

{#if error} -

Wails bindings error: {error}

-

Window opens but Go bindings not connected yet.

+

Go bindings не подключены: {error}

{/if}
{:else}
Загрузка...
{/if}
- +