From 3a4400fa149080b2278d9c7642f33ece635e642a Mon Sep 17 00:00:00 2001 From: Lundy Bernard Date: Wed, 16 Sep 2026 12:07:09 -0700 Subject: [PATCH] fix: Keep footer link labels on one line MyST renders cross-domain links as an anchor that wraps a span carrying Tailwind's whitespace-normal. The span resets the wrap mode, and inline-size: min-content shrinks the anchor to its longest word. Labels of two or more words then break onto a second line. The theme demo uses relative links, so it does not reproduce the bug. Assisted-by: claude-code:claude-opus-5 [The Engineer] --- template/assets/css/scientific-python.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/template/assets/css/scientific-python.css b/template/assets/css/scientific-python.css index 8c4c590..8edb5e5 100644 --- a/template/assets/css/scientific-python.css +++ b/template/assets/css/scientific-python.css @@ -73,9 +73,15 @@ main { & a { color: white; text-decoration-color: white; - inline-size: min-content; display: inline-block; - text-wrap: nowrap; + white-space: nowrap; + + /* MyST renders external links as + * . + * Override the span so multi-word labels stay on one line. */ + & .link-text { + white-space: nowrap; + } } }