diff --git a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte
index cb4bfc1c..0560f12e 100644
--- a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte
+++ b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte
@@ -713,16 +713,18 @@ $effect(() => {
+
{
- if ($ae_loc.trusted_access) {
+ if ($ae_loc.trusted_access && $ae_loc.edit_mode) {
// Toggle edit mode
$journals_loc.entry.edit = !$journals_loc.entry.edit;
$journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id] = $journals_loc.entry.edit;
}
}}
- role="button"
- tabindex="0"
+ role={$ae_loc.edit_mode ? 'button' : 'article'}
+ tabindex={$ae_loc.edit_mode ? 0 : -1}
+ class:bg-orange-100={$ae_loc.edit_mode}
class:hidden={!$ae_loc.trusted_access || $journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id]}
class="w-full font-mono shadow-md rounded-lg border-gray-500 bg-gray-100 p-2"
>
@@ -740,13 +742,13 @@ $effect(() => {