From 0cd3d50de3ecfbf3d7eafa5a41c03ac97dced510 Mon Sep 17 00:00:00 2001 From: Kam Date: Mon, 22 Jun 2026 19:11:46 +0300 Subject: [PATCH] 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 50bb0d6bfe006e87110556f9503a6cbf9a09e33d) --- adev/shared-docs/styles/docs/_table.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/adev/shared-docs/styles/docs/_table.scss b/adev/shared-docs/styles/docs/_table.scss index 451966efe71..0e049e37243 100644 --- a/adev/shared-docs/styles/docs/_table.scss +++ b/adev/shared-docs/styles/docs/_table.scss @@ -20,6 +20,10 @@ border-block: 1px solid var(--senary-contrast); font-size: 0.75rem; font-weight: 600; + + code { + white-space: nowrap; + } } tr {