Refactor Journal Entry view: Extract Header and clean up Editor bindings

This commit is contained in:
Scott Idem
2026-01-08 19:05:33 -05:00
parent 4fa59c3c0f
commit d1853f51f4
2 changed files with 139 additions and 1167 deletions

View File

@@ -42,7 +42,7 @@
readonly={true} readonly={true}
content={tmp_entry_obj?.content ?? ''} content={tmp_entry_obj?.content ?? ''}
bind:new_content={tmp_entry_obj.content} bind:new_content={tmp_entry_obj.content}
bind:theme_mode={$ae_loc.theme_mode} theme_mode={$ae_loc.theme_mode}
placeholder="No content..." placeholder="No content..."
class="p-2 preset-outlined-success-400-600 shadow-lg rounded-lg w-full max-w-6xl" class="p-2 preset-outlined-success-400-600 shadow-lg rounded-lg w-full max-w-6xl"
/> />
@@ -87,7 +87,7 @@
content={tmp_entry_obj?.content ?? ''} content={tmp_entry_obj?.content ?? ''}
bind:new_content={tmp_entry_obj.content} bind:new_content={tmp_entry_obj.content}
bind:editorView bind:editorView
bind:theme_mode={$ae_loc.theme_mode} theme_mode={$ae_loc.theme_mode}
placeholder="Write using Markdown..." placeholder="Write using Markdown..."
class="p-2 preset-outlined-warning-300-700 shadow-lg rounded-lg w-full max-w-6xl bg-surface-50 dark:bg-surface-800" class="p-2 preset-outlined-warning-300-700 shadow-lg rounded-lg w-full max-w-6xl bg-surface-50 dark:bg-surface-800"
/> />

File diff suppressed because it is too large Load Diff