From c2a05ea91940380ccc495fbe70d263e0e3b98d49 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Fri, 18 Jul 2025 03:04:29 -0700 Subject: [PATCH] feat: make configuration table denser with smaller fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reduced cell padding from 12px to 8px for more compact layout - Decreased font sizes: headers 13px, content 12px, badges 10px - Removed title-cased labels in leftmost column, showing only config key - Made badges smaller with reduced padding (1px 6px instead of 2px 8px) - Improved information density while maintaining readability 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docs/src/components/ConfigurationTable.tsx | 74 +++++++++++++--------- 1 file changed, 45 insertions(+), 29 deletions(-) diff --git a/docs/src/components/ConfigurationTable.tsx b/docs/src/components/ConfigurationTable.tsx index d2e67e81bfa..ce065a39010 100644 --- a/docs/src/components/ConfigurationTable.tsx +++ b/docs/src/components/ConfigurationTable.tsx @@ -51,9 +51,9 @@ const ImpactBadge: React.FC<{ impact: string }> = ({ impact }) => { style={{ backgroundColor: colors[impact] || '#d9d9d9', color: 'white', - padding: '2px 8px', - borderRadius: '4px', - fontSize: '12px', + padding: '1px 6px', + borderRadius: '3px', + fontSize: '10px', fontWeight: 'bold', }} > @@ -72,11 +72,11 @@ const RestartBadge: React.FC<{ requiresRestart: boolean }> = ({ style={{ backgroundColor: '#ff7875', color: 'white', - padding: '2px 8px', - borderRadius: '4px', - fontSize: '12px', + padding: '1px 6px', + borderRadius: '3px', + fontSize: '10px', fontWeight: 'bold', - marginLeft: '8px', + marginLeft: '6px', }} > RESTART @@ -153,36 +153,44 @@ const ConfigurationTable: React.FC = ({ Setting Description Type Default @@ -190,9 +198,11 @@ const ConfigurationTable: React.FC = ({ {showEnvironmentVariables && ( Environment Variable @@ -200,9 +210,11 @@ const ConfigurationTable: React.FC = ({ )} Impact @@ -214,24 +226,23 @@ const ConfigurationTable: React.FC = ({
- {setting.title} -
- + {setting.key} {setting.documentation_url && ( -
+
📖 Docs @@ -241,43 +252,47 @@ const ConfigurationTable: React.FC = ({ {setting.description} - {setting.type} + {setting.type} - + {formatDefault(setting.default)} {showEnvironmentVariables && (
- + {setting.env_var}
{setting.nested_example && ( -
+
{setting.nested_example} @@ -305,9 +320,10 @@ const ConfigurationTable: React.FC = ({ )}