From f087c38c6f293808c30196368bd7777e39b19cb0 Mon Sep 17 00:00:00 2001 From: Wx-2025 <351320169@qq.com> Date: Thu, 2 Oct 2025 21:46:52 +0800 Subject: [PATCH] Update table.css --- assets/table.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/table.css b/assets/table.css index 85439a8..c72c0b2 100644 --- a/assets/table.css +++ b/assets/table.css @@ -704,8 +704,9 @@ th.amily2-menu-open .amily2-header-text { border: 1px solid var(--am2-table-border, rgba(255, 255, 255, 0.25)); padding: 5px 8px; text-align: left; - white-space: nowrap; /* Prevent text from wrapping in cells */ + /* white-space: nowrap; will be applied via media query for mobile only */ } + .amily2-chat-table th { background-color: var(--am2-header-bg, rgba(255, 255, 255, 0.1)); font-weight: bold; @@ -752,10 +753,15 @@ th.amily2-menu-open .amily2-header-text { #amily2-chat-table-container { padding: 5px; /* Reduce container padding on mobile */ } + + /* On mobile, prevent text wrapping to enable horizontal scrolling */ + .amily2-chat-table th, + .amily2-chat-table td { + white-space: nowrap; + } } .amily2-chat-table td.amily2-cell-highlight { background-color: var(--am2-cell-highlight-bg, rgba(144, 238, 144, 0.3)); transition: background-color 0.5s ease-in-out; } -