Zeige Eingang und Ausgang als gefuellte Dreiecke vor dem Typ und tausche die Notiz gegen die gelieferte Sprechblase.
Deploy Development / deploy (push) Successful in 29s
Deploy Development / deploy (push) Successful in 29s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
f6f8d5980c
commit
f0c8981e22
10 files changed
+64
-35
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { documentToText, downloadMailPart, fetchFile, fetchPaperless, markDirty, textToDocument, api } from "../api.js";
|
||||
import { ErrorNote } from "./widgets.jsx";
|
||||
import { dateCaption, DirectionChoice, DirectionMark, formatDate, mailFacts, MarkdownEditor, sourceLabel } from "./content.jsx";
|
||||
import { dateCaption, DirectionChoice, DirectionColumn, directionWord, formatDate, mailFacts, MarkdownEditor, sourceLabel } from "./content.jsx";
|
||||
import { NavIcon } from "./icons.jsx";
|
||||
import workerSrc from "pdfjs-dist/build/pdf.worker.min.mjs?url";
|
||||
|
||||
@@ -53,9 +53,10 @@ function Correspondence({ element, onOpenRelated }) {
|
||||
disabled={item.current || !onOpenRelated}
|
||||
onClick={() => onOpenRelated?.(item.id)}
|
||||
>
|
||||
<DirectionColumn direction={item.direction} />
|
||||
<span>{formatDate(item.document_on)}</span>
|
||||
<strong>{item.current ? `${item.title} · diese Unterlage` : item.title}</strong>
|
||||
<DirectionMark direction={item.direction} />
|
||||
{directionWord(item.direction) ? <span>{directionWord(item.direction)}</span> : <span />}
|
||||
</button>
|
||||
))}
|
||||
</section>
|
||||
@@ -367,10 +368,13 @@ export function ReadingPane({ binding, context, backLabel, onClose, onReload, ca
|
||||
<span aria-hidden="true">‹</span> {backLabel || "Inhalte"}
|
||||
</button>
|
||||
<div className="reader-pane__heading">
|
||||
<h2>{element.title}</h2>
|
||||
<div className="reader-title">
|
||||
<DirectionColumn direction={shownDirection} />
|
||||
<h2>{element.title}</h2>
|
||||
</div>
|
||||
<p className="reader-facts">
|
||||
<span>{formatDate(element.dates?.document_on)} · {sourceLabel(element)}</span>
|
||||
<DirectionMark direction={shownDirection} />
|
||||
{directionWord(shownDirection) ? <span>{directionWord(shownDirection)}</span> : null}
|
||||
{mailFacts(element) ? <span>{mailFacts(element)}</span> : null}
|
||||
{dateCaption(element, shownDirection) ? <span>{dateCaption(element, shownDirection)}</span> : null}
|
||||
</p>
|
||||
@@ -391,7 +395,7 @@ export function ReadingPane({ binding, context, backLabel, onClose, onReload, ca
|
||||
<Correspondence element={element} onOpenRelated={onOpenRelated} />
|
||||
{isMail ? (
|
||||
<article className="mail-letter">
|
||||
<p><DirectionMark direction={shownDirection} /></p>
|
||||
<p className="mail-letter__way"><DirectionColumn direction={shownDirection} />{directionWord(shownDirection) ? <span>{directionWord(shownDirection)}</span> : null}</p>
|
||||
<p><span>Von</span> {mailDetail.message_from || "Ohne Absender"}</p>
|
||||
<p><span>An</span> {mailDetail.message_to || "Ohne Empfänger"}</p>
|
||||
{mailDetail.message_cc ? <p><span>Kopie</span> {mailDetail.message_cc}</p> : null}
|
||||
|
||||
Reference in new issue
Block a user