From e1f9987cdf2174d1324e12221f4caaddd4b1737c Mon Sep 17 00:00:00 2001 From: burinc Date: Wed, 18 Nov 2026 10:30:07 +1100 Subject: [PATCH 1/2] fix: code in a table cell no longer breaks mid-word Inline code has overflow-wrap: anywhere so long identifiers wrap in prose, but inside a table it lets the browser shrink a code column until names split one character at a time (cui_app_c / reate). Code in td and th now stays on one line, and a table too wide for the page scrolls, as .doc-content table already allows with overflow-x: auto. --- resources/static/css/screen.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/static/css/screen.css b/resources/static/css/screen.css index 09bea2a..2ecdacb 100644 --- a/resources/static/css/screen.css +++ b/resources/static/css/screen.css @@ -635,6 +635,15 @@ nav.toc {
, which scrolls instead) */
 }
 
+/* In a table cell, overflow-wrap: anywhere lets the browser squeeze a code
+   column until identifiers break mid-word. Keep each code span on one line
+   there; the table scrolls (overflow-x: auto) when it gets too wide. */
+.doc-content td code,
+.doc-content th code {
+  overflow-wrap: normal;
+  white-space: nowrap;
+}
+
 /* ---- Code blocks ---- */
 
 pre {

From 5ec93984ba9cfe9c15ef5d3cb5071a90b4040c34 Mon Sep 17 00:00:00 2001
From: burinc 
Date: Wed, 18 Nov 2026 11:21:52 +1100
Subject: [PATCH 2/2] fix: a prose column next to unbroken code stays readable
 on a phone

With code cells kept on one line, a 420px viewport squeezed the prose
column to one word per line and each row grew to about 370px tall. Below
760px, cells in a table that holds code get a 14rem minimum width, so the
prose wraps at a readable width and the table scrolls sideways.
---
 resources/static/css/screen.css | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/resources/static/css/screen.css b/resources/static/css/screen.css
index 2ecdacb..bdc4e37 100644
--- a/resources/static/css/screen.css
+++ b/resources/static/css/screen.css
@@ -644,6 +644,15 @@ nav.toc {
   white-space: nowrap;
 }
 
+/* On a phone the unbreakable code columns can take the whole width, which
+   leaves a prose column one word wide. A minimum cell width keeps the prose
+   readable, and the table scrolls sideways instead. */
+@media (max-width: 760px) {
+  .doc-content table:has(td code) td {
+    min-width: 14rem;
+  }
+}
+
 /* ---- Code blocks ---- */
 
 pre {