From a2e161bf2afac5cd32769621c04c95ef1e4b5657 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Tue, 19 Aug 2025 08:15:38 -0500 Subject: [PATCH] Improve Request Breakdown UI with better contrast and text handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhances the visual presentation and usability of the Request Breakdown page with improved typography and column constraints. Changes: - Update header colors (h2, h3) from #333 to white for better contrast against dark backgrounds - Fix category column text wrapping with intelligent word breaking and proper line height - Add table layout constraints to prevent horizontal overflow - Improve mobile typography with responsive font sizing for category names - Add hyphenation support for long hostnames and domain names Benefits: - Better accessibility and readability with higher contrast headers - Prevents table layout issues with long hostnames - Maintains responsive design across all screen sizes - Professional appearance with consistent text handling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/components/RequestBreakdown.module.css | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/RequestBreakdown.module.css b/src/components/RequestBreakdown.module.css index b6916a0..3e9ab86 100644 --- a/src/components/RequestBreakdown.module.css +++ b/src/components/RequestBreakdown.module.css @@ -6,7 +6,7 @@ .container h2 { margin-bottom: 30px; - color: #333; + color: white; font-size: 28px; font-weight: 600; } @@ -77,7 +77,7 @@ .breakdownSection h3 { margin-bottom: 20px; - color: #333; + color: white; font-size: 22px; font-weight: 600; border-bottom: 2px solid #e0e0e0; @@ -89,6 +89,8 @@ border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + width: 100%; + table-layout: fixed; } .tableHeader { @@ -126,6 +128,10 @@ .categoryName { font-weight: 600; color: #333; + word-break: break-word; + overflow-wrap: break-word; + hyphens: auto; + line-height: 1.3; } .percentageCell { @@ -206,12 +212,19 @@ font-size: 13px; } + .categoryName { + font-size: 12px; + line-height: 1.3; + } + .breakdownSection h3 { font-size: 18px; + color: white; } .container h2 { font-size: 24px; + color: white; } }