From 838fbc18dc58ae69f9e73b3d6f62760fd7188cf5 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Fri, 17 Oct 2025 09:59:22 -0300 Subject: [PATCH] fix: improve options table reading (#20341) From @chrifro - text-sm regular for the body text (24px line height) - text-sm bold and white font for the headline **Before:** Screenshot 2025-10-16 at 10 08 19 **After:** Screenshot 2025-10-16 at 10 10 27 --- .../pages/DeploymentSettingsPage/Option.tsx | 19 ++++---------- .../DeploymentSettingsPage/OptionsTable.tsx | 25 ++----------------- 2 files changed, 7 insertions(+), 37 deletions(-) diff --git a/site/src/pages/DeploymentSettingsPage/Option.tsx b/site/src/pages/DeploymentSettingsPage/Option.tsx index 3dd61750d1..ae13db003c 100644 --- a/site/src/pages/DeploymentSettingsPage/Option.tsx +++ b/site/src/pages/DeploymentSettingsPage/Option.tsx @@ -5,26 +5,17 @@ import type { FC, HTMLAttributes, PropsWithChildren } from "react"; import { MONOSPACE_FONT_FAMILY } from "theme/constants"; export const OptionName: FC = ({ children }) => { - return {children}; -}; - -export const OptionDescription: FC = ({ children }) => { - const theme = useTheme(); - return ( - + {children} ); }; +export const OptionDescription: FC = ({ children }) => { + return {children}; +}; + interface OptionValueProps { children?: boolean | number | string | string[] | Record; } diff --git a/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx b/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx index 11b5182e56..ddc4266124 100644 --- a/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx +++ b/site/src/pages/DeploymentSettingsPage/OptionsTable.tsx @@ -1,4 +1,3 @@ -import { css } from "@emotion/react"; import type { SerpentOption } from "api/typesGenerated"; import { Table, @@ -29,20 +28,7 @@ const OptionsTable: FC = ({ options, additionalValues }) => { } return ( - +
Option @@ -56,14 +42,7 @@ const OptionsTable: FC = ({ options, additionalValues }) => { {option.name} {option.description} -
+
{option.flag && ( CLI