[PHP-WEBMASTER] [web-php] master: Table caption fix/update

Author: pwright64 (pwright64)
Committer: Derick Rethans (derickr)
Date: 2026-09-22T15:09:45+01:00

Commit: Table caption fix/update · php/web-php@efc8375 · GitHub
Raw diff: https://github.com/php/web-php/commit/efc8375dc0508515189a4bb332e2f1868c06314f.diff

Table caption fix/update

Change to table caption (table titles) behavior in mobile to fix table captions squishing and splitting to 3 lines. Increased .doctable caption line-height to 2rem for better readability.

Changed paths:
  M public/styles/theme-base.css

Diff:

diff --git a/public/styles/theme-base.css b/public/styles/theme-base.css
index 74a5351714..d95f80c6a5 100644
--- a/public/styles/theme-base.css
+++ b/public/styles/theme-base.css
@@ -1031,6 +1031,9 @@ div.tip p:first-child {
     border:1px solid;
}

+.doctable caption {
+ line-height: 2rem;
+}
/* }}} */

/* {{{ lists */
@@ -1528,6 +1531,11 @@ td {
     display: block;
   }

+ /* Prevent table titles from breaking into multiple lines */
+ table caption {
+ display: inline;
+ }
+
   /* Hide the table headers */
   thead tr {
     position: absolute;