From 09259483bc30d307856a475c443799d3171f6eae Mon Sep 17 00:00:00 2001 From: pwright64 Date: Fri, 21 Aug 2026 11:54:03 -0400 Subject: [PATCH] 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. --- public/styles/theme-base.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/public/styles/theme-base.css b/public/styles/theme-base.css index 74a5351714..f8fd804ac1 100644 --- a/public/styles/theme-base.css +++ b/public/styles/theme-base.css @@ -1003,7 +1003,6 @@ div.tip p:first-child { .docs .qandaentry dt .phpcode * { font-weight: normal; } - /* }}} */ @@ -1022,15 +1021,20 @@ div.tip p:first-child { width: 100%; margin:0 0 1.5rem; } + .doctable thead tr, .segmentedlist thead tr { border:1px solid; } + .doctable tr, .segmentedlist tr { border:1px solid; } +.doctable caption { + line-height: 2rem; +} /* }}} */ /* {{{ lists */ @@ -1528,6 +1532,11 @@ td { display: block; } + /* Prevent table titles from breaking into multiple lines */ + table caption { + display: inline; + } + /* Hide the table headers */ thead tr { position: absolute; @@ -1544,6 +1553,7 @@ td { border-bottom: 1px solid #eee; position: relative; } + td:before { left: -.50rem; top: -0.3rem;