From 7486150aabefe1e509998bf299564661b5f3f168 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 4 May 2026 18:32:38 -0400 Subject: [PATCH] Fix journal entry layout scrolling --- .../journals/[journal_id]/+layout.svelte | 20 ++-- .../entry/[journal_entry_id]/+page.svelte | 2 +- .../ae_comp__journal_entry_header.svelte | 28 ++--- .../ae_comp__journal_entry_obj_id_view.svelte | 112 +++++++++--------- 4 files changed, 80 insertions(+), 82 deletions(-) diff --git a/src/routes/journals/[journal_id]/+layout.svelte b/src/routes/journals/[journal_id]/+layout.svelte index 97e998f8..32c6696b 100644 --- a/src/routes/journals/[journal_id]/+layout.svelte +++ b/src/routes/journals/[journal_id]/+layout.svelte @@ -13,14 +13,12 @@ import { FilePlus, Notebook, SquareLibrary, X } from '@lucide/svelte'; import { liveQuery } from 'dexie'; import { db_journals } from '$lib/ae_journals/db_journals'; -import { ae_loc, ae_api, slct } from '$lib/stores/ae_stores'; +import { ae_loc, ae_api } from '$lib/stores/ae_stores'; import { journals_loc, - journals_sess, journals_slct } from '$lib/ae_journals/ae_journals_stores'; import { journals_func } from '$lib/ae_journals/ae_journals_functions'; -import type { ae_JournalEntry } from '$lib/types/ae_types'; import Journal_entry_obj_qry from './../ae_comp__journal_entry_obj_qry.svelte'; @@ -85,12 +83,11 @@ $effect(() => { class=" ae_journals__journal mx-auto - flex max-h-max min-h-full max-w-max - min-w-full - grow + flex w-full max-w-none min-w-0 flex-col - items-center + items-stretch gap-1 + min-h-0 space-y-2 ">
.length}× Recent Entries... - {#each Object.entries($journals_loc.entry_view_history_kv as Record).reverse() as [journal_entry_id, journal_entry_obj] (journal_entry_id)} + {#each Object.entries( + $journals_loc.entry_view_history_kv as Record< + string, + { id: string; name: string; url: string } + > + ).reverse() as [journal_entry_id, journal_entry_obj] (journal_entry_id)}
-
+
{@render children?.()}
diff --git a/src/routes/journals/[journal_id]/entry/[journal_entry_id]/+page.svelte b/src/routes/journals/[journal_id]/entry/[journal_entry_id]/+page.svelte index d7af3d06..ab8f3523 100644 --- a/src/routes/journals/[journal_id]/entry/[journal_entry_id]/+page.svelte +++ b/src/routes/journals/[journal_id]/entry/[journal_entry_id]/+page.svelte @@ -273,7 +273,7 @@ $effect(() => { class=" ae_journals__journal_entry mx-auto - flex w-full max-w-6xl min-w-0 + flex w-full max-w-none min-w-0 grow flex-col items-stretch diff --git a/src/routes/journals/ae_comp__journal_entry_header.svelte b/src/routes/journals/ae_comp__journal_entry_header.svelte index d8bca437..86b5448f 100644 --- a/src/routes/journals/ae_comp__journal_entry_header.svelte +++ b/src/routes/journals/ae_comp__journal_entry_header.svelte @@ -67,23 +67,23 @@ function toggle_edit_mode() {
-
+ dark:border-gray-700 dark:bg-gray-800"> +
-
+
-
+
{#if $journals_loc.entry.edit_kv[entry.journal_entry_id] === 'current'}
@@ -171,7 +171,7 @@ function toggle_edit_mode() { {#if has_changed && save_status !== 'saving'} 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 a55aed23..56e8569f 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 @@ -424,7 +424,7 @@ let modal_mode: 'append' | 'prepend' | 'auto' = $state('auto'); group-hover/entry-view:opacity-15 dark:opacity-10 dark:group-hover/entry-view:opacity-20">
@@ -441,65 +441,61 @@ let modal_mode: 'append' | 'prepend' | 'auto' = $state('auto'); {save_status} {log_lvl} /> -
-
- {#if decryption_error} -
-
- - {decryption_error} -
- -
- {/if} - - -
-
- update_journal_entry()} - {log_lvl} /> -
- - update_journal_entry()} - on_force_reset={handle_force_reset} /> -
- - -
- - + {/if} + + +
+
+ update_journal_entry()} + {log_lvl} /> +
+ + update_journal_entry()} + on_force_reset={handle_force_reset} /> +
+ + + +
+ +