Hide empty journal attachments

This commit is contained in:
Scott Idem
2026-05-04 17:35:36 -04:00
parent 9ed2d21757
commit 7fd8c976bf

View File

@@ -191,6 +191,7 @@ async function handle_remove_file(file_id: string) {
} }
</script> </script>
{#if $ae_loc.edit_mode || unified_file_li.length > 0}
<section class="ae_section journal_entry_files my-2 w-full space-y-4"> <section class="ae_section journal_entry_files my-2 w-full space-y-4">
<!-- Header --> <!-- Header -->
<div <div
@@ -257,11 +258,6 @@ async function handle_remove_file(file_id: string) {
</div> </div>
{/each} {/each}
</div> </div>
{:else if !$ae_loc.edit_mode}
<p
class="text-surface-500 bg-surface-500/5 rounded-xl p-4 text-center text-sm italic">
No files attached to this entry.
</p>
{/if} {/if}
<!-- Edit/Management Tools --> <!-- Edit/Management Tools -->
@@ -312,3 +308,4 @@ async function handle_remove_file(file_id: string) {
</div> </div>
{/if} {/if}
</section> </section>
{/if}