refactor(work-orders): shrink inline row cells under function line cap

Extract muted dash placeholders so governance max-lines-per-function passes.
This commit is contained in:
arthur.bassi 2026-08-11 15:44:36 -03:00
parent 8398a08b76
commit 29580c6add

View file

@ -28,6 +28,14 @@ type WoTableInlineRowCellsProps = {
onPatch: (patch: Partial<WorkOrderTableDraft>) => void;
};
function InlineMutedDashCell() {
return (
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
);
}
export function WoTableInlineRowCells({
draft,
weekDefault,
@ -170,13 +178,8 @@ export function WoTableInlineRowCells({
/>
</td>
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
<td style={{ padding: "0 14px" }}>
<span style={{ fontSize: 11, color: "var(--color-text-muted)" }}>—</span>
</td>
<InlineMutedDashCell />
<InlineMutedDashCell />
</>
);
}