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" tabindex="0"
ondragstart={handleDragStart} ondragstart={handleDragStart}
> >
<NodeHtml bind:node={nodeData} inView={true} position="relative" z={5} /> {#if nodeData}
<NodeHtml bind:node={nodeData} inView={true} position="relative" z={5} />
{/if}
</div> </div>
</div> </div>

View File

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

View File

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

View File

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

View File

@@ -11,14 +11,16 @@
let { manager, node = $bindable() }: Props = $props(); let { manager, node = $bindable() }: Props = $props();
</script> </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} {#if node}
{#key node.id} {#key node.id}
{#if node} {#if node}
<ActiveNodeSelected {manager} bind:node /> <ActiveNodeSelected {manager} bind:node />
{:else}
<p class="mx-4">Active Node has no Settings</p>
{/if} {/if}
{/key} {/key}
{:else} {:else}
<p class="mx-4">No node selected</p> <p class="mx-4 mt-4">No node selected</p>
{/if} {/if}

View File

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