diff --git a/src/components/workers/ProspectPanel.jsx b/src/components/workers/ProspectPanel.jsx index 8c4dc26..af35661 100644 --- a/src/components/workers/ProspectPanel.jsx +++ b/src/components/workers/ProspectPanel.jsx @@ -123,7 +123,7 @@ export default function ProspectPanel({ api, prospectId, onClose }) { title={view ? view.title : 'Interessent'} onClose={onClose} wide - footer={} + footer={} > {body} diff --git a/src/styles/workers.css b/src/styles/workers.css index e0eea8e..ea31938 100644 --- a/src/styles/workers.css +++ b/src/styles/workers.css @@ -259,6 +259,10 @@ /* Hauptknopf oben, „Abbrechen“ darunter */ .wk-pult-panel-btns { flex-direction: column-reverse; align-items: stretch; } .wk-pult-panel-foot .btn { width: 100%; min-height: 40px; justify-content: center; text-align: center; } + /* „Schließen“ im Fuß des Interessenten-Panels: `.dialog-foot .btn` (global.css, 32 px) gilt für alle Dialoge und bleibt; hier nur der eigene Knopf auf 40 px. + Der Dialog hängt nicht unter einer wk-Klasse, die Regel beginnt deshalb mit der Klasse des Knopfs. Mit (0,3,0) (Klasse, Klasse, Attribut) gewinnt sie + gegen (0,2,0), gleich in welcher Reihenfolge die Dateien geladen werden. */ + .wk-prospect-close.btn[type="button"] { width: 100%; min-height: 40px; justify-content: center; } } /* ---------- Weniger Bewegung ---------- */ diff --git a/tests/unit/workersProspect.test.mjs b/tests/unit/workersProspect.test.mjs index 9f93f8a..726caf2 100644 --- a/tests/unit/workersProspect.test.mjs +++ b/tests/unit/workersProspect.test.mjs @@ -430,3 +430,20 @@ test('CSS: wk-pult-text bricht Zeilen wie im Text (pre-wrap) und lange Wörter u const jsx = read('src/components/workers/ProspectPanel.jsx') for (const m of jsx.matchAll(/(? { + const jsx = read('src/components/workers/ProspectPanel.jsx') + assert.match(jsx, /