fix(docs-infra): prevent inline code in table headers from wrapping mid-word

When a documentation table has a wide content column, the narrow header
columns get squeezed and inline-code header labels break mid-word at
their hyphens. On the MCP server tools page this rendered the `local-only`
and `read-only` column headers as `local-` / `only` and `read-` / `only`.

Apply `white-space: nowrap` to `code` inside `th` so header tokens stay on
a single line. The rule is scoped to headers, whose labels are always
short, so long code signatures in body cells continue to wrap and no
table gains a horizontal scrollbar.

(cherry picked from commit 50bb0d6bfe)
This commit is contained in:
Kam
2026-06-22 19:11:46 +03:00
committed by kirjs
parent aaac1bcd79
commit 0cd3d50de3
+4
View File
@@ -20,6 +20,10 @@
border-block: 1px solid var(--senary-contrast);
font-size: 0.75rem;
font-weight: 600;
code {
white-space: nowrap;
}
}
tr {