diff --git a/frontend/src/routes/korrespondenz/ConversationTimeline.svelte b/frontend/src/routes/korrespondenz/ConversationTimeline.svelte index 6fc8bc56..1eedcd68 100644 --- a/frontend/src/routes/korrespondenz/ConversationTimeline.svelte +++ b/frontend/src/routes/korrespondenz/ConversationTimeline.svelte @@ -1,13 +1,9 @@ - -
- {#if yearFrom !== null && yearTo !== null} -

- {m.conv_summary({ count: documents.length, yearFrom, yearTo })} -

- {:else} -

- {documents.length} -

- {/if} - {#if canWrite} - - - - - {m.conv_new_doc_link()} - - {/if} -
- - -
- +{#if isBilateral && documents.length > 0} - -
-
- {#each enrichedDocuments as { doc, year, showYearDivider } (doc.id)} - {#if showYearDivider} -
-
- {year} -
-
- {/if} - {@const isRight = doc.sender?.id === senderId} - - - - {/each} + class="flex flex-col gap-1 border-b border-[#E8E4DF] bg-[#F7F5F2] px-[18px] py-2" + role="img" + aria-label="Briefverteilung in diesem Zeitraum: {outCount} von {senderName ?? ''}, {inCount} von {receiverName ?? ''}" + > +
+ {outCount} von {senderName} → + {inCount} von {receiverName} ← +
+
+
+
+{/if} + +
+ {#each enrichedDocuments as { doc, year, showYearDivider, isOut } (doc.id)} + {#if showYearDivider && year !== null} +
+ {year} + {countsByYear.get(year) ?? 0} Briefe +
+ {/if} + + + + +
+
+ {doc.title || doc.originalFilename} +
+
+ {doc.documentDate ? formatDate(doc.documentDate) : '—'} + {#if doc.location} + · + {doc.location} + {/if} + {#if !receiverId} + · + {otherPartyName(doc)} + {/if} + +
+
+ + +
+ {/each} + + {#if canWrite} + + {/if}