feat(app): merge active node and graph settings panel

This commit is contained in:
Max Richter
2026-02-03 13:04:50 +01:00
parent b19da950a6
commit 76cdfee018
6 changed files with 16 additions and 14 deletions

View File

@@ -51,7 +51,9 @@
tabindex="0"
ondragstart={handleDragStart}
>
{#if nodeData}
<NodeHtml bind:node={nodeData} inView={true} position="relative" z={5} />
{/if}
</div>
</div>

View File

@@ -211,6 +211,11 @@
padding-left: 1em;
padding-right: 1em;
padding-bottom: 1px;
gap: 3px;
}
.first-level.input-boolean {
gap: 10px;
}
button {
@@ -218,7 +223,6 @@
}
hr {
position: absolute;
margin: 0;
left: 0;
right: 0;

View File

@@ -33,8 +33,8 @@
{#if panelState.activePanel.value === id}
<div class="wrapper" class:hidden>
{#if title}
<header>
<h3>{title}</h3>
<header class="bg-layer-2">
<h3 class="font-bold">{title}</h3>
</header>
{/if}
{@render children?.()}

View File

@@ -95,5 +95,5 @@
type={nodeDefinition}
/>
{:else}
<p class="mx-4">Node has no settings</p>
<p class="mx-4 mt-4">Node has no settings</p>
{/if}

View File

@@ -11,14 +11,16 @@
let { manager, node = $bindable() }: Props = $props();
</script>
<div class='{node?"border-l-2 pl-3.5!":""} bg-layer-2 flex items-center h-[70px] border-b-1 border-l-selected border-b-outline pl-4'>
<h3 class="font-bold">Node Settings</h3>
</div>
{#if node}
{#key node.id}
{#if node}
<ActiveNodeSelected {manager} bind:node />
{:else}
<p class="mx-4">Active Node has no Settings</p>
{/if}
{/key}
{:else}
<p class="mx-4">No node selected</p>
<p class="mx-4 mt-4">No node selected</p>
{/if}

View File

@@ -247,12 +247,6 @@
type={graphSettingTypes}
bind:value={graphSettings}
/>
</Panel>
<Panel
id="active-node"
title="Node Settings"
icon="i-[tabler--adjustments] bg-blue-400"
>
<ActiveNodeSettings {manager} bind:node={activeNode} />
</Panel>
</Sidebar>