From 6eb3f8a3d9a1847ad8c2aa540ebc0f806eff8e92 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sat, 1 Nov 2025 04:22:51 +0100 Subject: [PATCH] detailpanel --- .../src/documents/DocumentSummarySection.jsx | 80 +++++++++---------- frontend/src/styles.css | 10 ++- 2 files changed, 47 insertions(+), 43 deletions(-) diff --git a/frontend/src/documents/DocumentSummarySection.jsx b/frontend/src/documents/DocumentSummarySection.jsx index a7f57cd..dee3b16 100644 --- a/frontend/src/documents/DocumentSummarySection.jsx +++ b/frontend/src/documents/DocumentSummarySection.jsx @@ -529,46 +529,6 @@ const DocumentSummarySection = ({ {titleError ?
{titleError}
: null} - onTagRemove(document.id, tag.id) - : undefined - } - onAdd={ - onTagAdd - ? ({ value, option }) => onTagAdd(document, value, { option }) - : undefined - } - datalistOptions={tagOptions} - /> - - - onCorrespondentRemove({ - documentId: document.id, - correspondentId: entry.id, - }) - : undefined - } - onAdd={ - onCorrespondentAdd - ? ({ name, option }) => - onCorrespondentAdd({ - document, - name, - option, - }) - : undefined - } - showCount - datalistOptions={correspondentOptions} - /> -
Issued: @@ -624,6 +584,46 @@ const DocumentSummarySection = ({
))}
+ + onTagRemove(document.id, tag.id) + : undefined + } + onAdd={ + onTagAdd + ? ({ value, option }) => onTagAdd(document, value, { option }) + : undefined + } + datalistOptions={tagOptions} + /> + + + onCorrespondentRemove({ + documentId: document.id, + correspondentId: entry.id, + }) + : undefined + } + onAdd={ + onCorrespondentAdd + ? ({ name, option }) => + onCorrespondentAdd({ + document, + name, + option, + }) + : undefined + } + showCount + datalistOptions={correspondentOptions} + /> ); }; diff --git a/frontend/src/styles.css b/frontend/src/styles.css index 8c50d7c..ed39f33 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -2605,7 +2605,7 @@ button.danger:hover:not([disabled]) { display: flex; flex-direction: column; gap: 0.35rem; - margin: 0.25rem 0 0.5rem; + margin: 0.25rem 0 1.25rem; max-width: 100%; word-break: break-word; } @@ -2652,7 +2652,7 @@ button.danger:hover:not([disabled]) { display: flex; flex-direction: column; gap: 0.35rem; - margin: 0.5rem 0; + margin: 1rem 0; } .detail-meta__row { @@ -2672,6 +2672,10 @@ button.danger:hover:not([disabled]) { color: var(--fg); } +.detail-meta__row > .icon-button { + margin: -0.25rem; +} + .doc-issued-row { display: inline-flex; align-items: center; @@ -2909,7 +2913,7 @@ button.danger:hover:not([disabled]) { display: flex; flex-wrap: wrap; gap: 0.5rem; - margin: 0.5rem 0; + margin: 1rem 0; align-items: center; }