fix: quiet show tools action at the right of the access title

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-12-03 12:45:10 +01:00
co-authored by Claude Opus 5.5
parent c04e95d92d
commit 079dd4848d
@@ -1,6 +1,7 @@
<script lang="ts">
import type { Snippet } from 'svelte'
import { Button } from '$lib/components/common'
import { Wrench } from 'lucide-svelte'
import McpToolsModal from './McpToolsModal.svelte'
import type { ToolsetLevel } from './toolsets.svelte'
@@ -24,7 +25,15 @@
<span class="text-xs font-semibold text-emphasis">Access</span>
{@render edit?.()}
{#if shown}
<Button variant="default" unifiedSize="xs" onClick={() => (open = true)}>Show tools</Button>
<div class="grow"></div>
<Button
variant="subtle"
unifiedSize="2xs"
startIcon={{ icon: Wrench }}
onClick={() => (open = true)}
>
Show tools
</Button>
{/if}
</div>
{@render children()}