diff --git a/frontend/src/pages/Cases.jsx b/frontend/src/pages/Cases.jsx index ef7e20b..69cc7d2 100644 --- a/frontend/src/pages/Cases.jsx +++ b/frontend/src/pages/Cases.jsx @@ -635,7 +635,7 @@ export function CaseDetail() { { setModal(""); load(); }} /> setModal("")}> - { setModal(""); load(); }} /> + { load(); if (finished) setModal(""); }} /> setModal("")}> { setModal(""); load(); }} /> @@ -870,12 +870,12 @@ export function ContentForms({ context, placement, chapters, onChange }) { ); } -function chapterSelect(chapters, value, setValue) { +function chapterSelect(chapters, value, setValue, disabled = false) { if (!chapters?.length) return null; return ( setModal("")}> - { setModal(""); load(); }} /> + { load(); if (finished) setModal(""); }} /> setModal("")}> { setModal(""); load(); }} /> diff --git a/frontend/src/styles.css b/frontend/src/styles.css index a8bf03a..901cd3f 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -527,6 +527,33 @@ button.nav-item:active { transform: none; } .export-review > p { text-align: left; } .add-choices { display: grid; gap: 8px; } .add-choices button { min-height: 44px; justify-content: flex-start; } +.file-batch { + list-style: none; + margin: 0; + padding: 0; + display: grid; + gap: 10px; + max-height: 280px; + overflow: auto; +} +.file-batch li { + display: grid; + gap: 6px; + padding: 10px; + border: 1px solid var(--border); + border-radius: 10px; + background: var(--surface2); +} +.file-batch label { overflow-wrap: anywhere; } +.file-batch__remove { justify-self: start; } +.file-batch__file { + display: flex; + gap: 8px; + align-items: center; + justify-content: space-between; +} +.file-batch__file span { min-width: 0; overflow-wrap: anywhere; } +.file-batch__file button { flex: none; } .hierarchy__parent { margin-bottom: 8px; } .order-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .order-bar button { min-height: 44px; }