From 9920453a15c1d46ab5ad95b66fcee539fac87ac2 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 11 Mar 2026 00:32:20 -0500 Subject: prevent tables from overflowing --- theme/static/styles.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'theme/static/styles.css') diff --git a/theme/static/styles.css b/theme/static/styles.css index 190b454..5b56d7d 100644 --- a/theme/static/styles.css +++ b/theme/static/styles.css @@ -490,7 +490,19 @@ blockquote::after { /* ============================================================ TABLES ============================================================ */ -table { width: 100%; border-collapse: collapse; margin: 2rem 0; } +table { + display: block; + width: 100%; + max-width: 100%; + overflow-x: auto; + border-collapse: collapse; + margin: 2rem 0; +} + +table td, table th { + white-space: nowrap; + padding: 0.5rem 1rem; +} th, td { border-bottom: 1px solid var(--border-soft); padding: 0.65rem 0.75rem; -- cgit v1.2.3