Add independent settings access to AI Tools component

- Added a dedicated gear button to open the AI modal directly to the Settings tab.
- Resolved the 'chicken and egg' problem where settings were inaccessible if the AI process failed.
- Improved layout consistency with inline-flex wrapper.
This commit is contained in:
Scott Idem
2026-01-08 18:16:45 -05:00
parent b912350829
commit 5ffab36ef7

View File

@@ -114,7 +114,7 @@
}
</script>
<div class="ae-ai-tools-wrapper inline-block">
<div class="ae-ai-tools-wrapper inline-flex items-center gap-1">
<!-- Trigger Button -->
<button
type="button"
@@ -133,6 +133,19 @@
{/await}
</button>
<!-- Quick Settings Button -->
<button
type="button"
onclick={() => {
active_tab = 'settings';
show_modal = true;
}}
class="btn btn-sm variant-soft-surface shadow-md"
title="AI Settings"
>
<Settings size="1.2em" />
</button>
<!-- Unified AI Modal -->
{#if show_modal}
<Modal