diff --git a/src/lib/ae_elements/AE_AITools.svelte b/src/lib/ae_elements/AE_AITools.svelte index 404f68b9..33649c45 100644 --- a/src/lib/ae_elements/AE_AITools.svelte +++ b/src/lib/ae_elements/AE_AITools.svelte @@ -74,6 +74,16 @@ let active_tab: 'result' | 'settings' = $state('result'); let tmp_summary = $state(''); let show_api_token = $state(false); +const panel_class = 'space-y-4 rounded-xl border border-surface-500/20 bg-surface-500/5 p-4 shadow-sm'; +const panel_title_class = 'flex items-center gap-2 border-b border-surface-500/20 pb-2 text-lg font-bold'; +const tab_button_base_class = 'btn btn-sm border transition-all duration-200'; +const tab_button_active_class = 'border-surface-200-800 bg-surface-200-800 text-surface-950-50 shadow-sm'; +const tab_button_inactive_class = 'border-transparent bg-surface-50-900/60 text-surface-600-400 hover:border-surface-200-800 hover:bg-surface-100-900 hover:text-surface-950-50'; + +function tab_button_class(is_active: boolean): string { + return `${tab_button_base_class} ${is_active ? tab_button_active_class : tab_button_inactive_class}`; +} + async function generate_ai_result() { if (!content) { alert('No content available to analyze.'); @@ -179,21 +189,17 @@ function handle_save() { title="Aether AI Assistant" bind:open={show_modal} size="lg" - class="bg-surface-50-900"> -
+ class="relative mx-auto flex h-[calc(100dvh-2rem)] max-h-[calc(100dvh-2rem)] w-full flex-col rounded-xl border border-surface-200-800 bg-surface-50-900 text-surface-950-50 shadow-xl"> +
-
+
@@ -225,9 +231,8 @@ function handle_save() {
-
-

+
+

API Connection

@@ -299,13 +304,11 @@ function handle_save() {

-
+ -
-

+
+

Inference Parameters

@@ -331,10 +334,10 @@ function handle_save() { System Prompt -
+

{/if}