diff --git a/src/app/projects/[projectId]/setup/evidence/RequirementsTable.tsx b/src/app/projects/[projectId]/setup/evidence/RequirementsTable.tsx
index 31eb5271..8ded6f2c 100644
--- a/src/app/projects/[projectId]/setup/evidence/RequirementsTable.tsx
+++ b/src/app/projects/[projectId]/setup/evidence/RequirementsTable.tsx
@@ -44,8 +44,11 @@ const EMPTY_DRAFT: Draft = {
namingRule: "",
};
+// `pr-8` keeps the option text clear of the native chevron, which is drawn
+// inside the control's right padding — at `px-2` a long stage name runs
+// straight under it.
const selectClass =
- "w-full rounded-md border border-gray-200 bg-white px-2 py-1.5 text-sm text-gray-700 focus:border-indigo-400 focus:outline-none focus:ring-1 focus:ring-indigo-400 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-400";
+ "w-full rounded-md border border-gray-200 bg-white px-2 py-1.5 pr-8 text-sm text-gray-700 focus:border-indigo-400 focus:outline-none focus:ring-1 focus:ring-indigo-400 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-400";
const inputClass =
"w-full rounded-md border border-gray-200 bg-white px-2 py-1.5 font-mono text-xs text-gray-700 placeholder:font-sans placeholder:text-gray-400 focus:border-indigo-400 focus:outline-none focus:ring-1 focus:ring-indigo-400 disabled:cursor-not-allowed disabled:bg-gray-50";
@@ -67,6 +70,13 @@ export function RequirementsTable({
const collectionUrl = `/api/projects/${projectId}/workstreams/${workstream.workstreamId}/evidence-requirements`;
+ /**
+ * Ties the composer's controls to the form element below the table. Derived
+ * from the workstream rather than generated, so it is the same string on the
+ * server and in the browser — and distinct per workstream.
+ */
+ const addFormId = `evidence-add-${workstream.workstreamId}`;
+
const refresh = () =>
queryClient.invalidateQueries({ queryKey: evidenceQueryKey(projectId) });
@@ -197,12 +207,14 @@ export function RequirementsTable({
Document
- Stage
+ {/* Wide enough for "Whole workstream" and a stage name, chevron included. */}
+ Stage
Naming rule
Required
-
+ {/* Wide enough for the composer's Add button, not just the bin. */}
+