From bdba092de077f483dc968622375d4ed646a6ad2c Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Fri, 8 May 2026 17:15:52 -0400 Subject: [PATCH] Polish journal entry save buttons and header controls - Add hover titles to all save buttons - Match warning color scheme across floating, inline, and header save buttons - Fix floating save button visibility (Tailwind v4 hidden/md:inline-flex conflict) - Hide floating save when no unsaved changes using {#if} - Hide Config button when not in admin edit mode - Remove the mobile/backup explicit Save button from header (redundant) Co-Authored-By: Claude Sonnet 4.6 --- src/lib/ae_elements/AE_AITools.svelte | 3 +- .../ae_comp__journal_entry_editor.svelte | 32 +++++++++++----- .../ae_comp__journal_entry_header.svelte | 38 +++++++++++++------ 3 files changed, 50 insertions(+), 23 deletions(-) diff --git a/src/lib/ae_elements/AE_AITools.svelte b/src/lib/ae_elements/AE_AITools.svelte index 491ddbeb..a8d6b4db 100644 --- a/src/lib/ae_elements/AE_AITools.svelte +++ b/src/lib/ae_elements/AE_AITools.svelte @@ -165,7 +165,7 @@ function handle_save() { Processing... {:then} - Summarize + {:catch} Error {/await} @@ -181,6 +181,7 @@ function handle_save() { class="btn btn-sm preset-tonal-surface shadow-md" title="AI Settings"> + diff --git a/src/routes/journals/ae_comp__journal_entry_editor.svelte b/src/routes/journals/ae_comp__journal_entry_editor.svelte index 77627bf3..aece1fb3 100644 --- a/src/routes/journals/ae_comp__journal_entry_editor.svelte +++ b/src/routes/journals/ae_comp__journal_entry_editor.svelte @@ -4,7 +4,9 @@ * Extracted 2026-01-08 to modularize the massive Journal Entry view. * Handles: CodeMirror vs Plain vs Rendered HTML for both View and Edit modes. */ -import { LockKeyhole, RefreshCcw, Save } from '@lucide/svelte'; +import { + LockKeyhole, RefreshCcw, Save +} from '@lucide/svelte'; import { ae_loc } from '$lib/stores/ae_stores'; import { journals_loc } from '$lib/ae_journals/ae_journals_stores'; import AE_Comp_Editor_CodeMirror from '$lib/elements/element_editor_codemirror.svelte'; @@ -67,6 +69,7 @@ const preferred_viewer = $derived(
+ {@html tmp_entry_obj?.content_md_html || ''}
{/if} @@ -120,21 +123,30 @@ const preferred_viewer = $derived( placeholder="Edit content..."> {/if} - - + + {#if has_changed} + + {/if} - {#if has_changed && save_status !== 'saving'} +