From 54a7ec4b5b573509ca1b0858c249a99624fd541f Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Fri, 27 Feb 2026 21:04:54 +1100 Subject: [PATCH] fix: resolve borders on `` (#22345) This pull-request resolves some stupid border issues we were having in ``. We were duplicating borders and this would lead to a `2px` border (`1px + 1px` added together). I've resolved this by using the `divide-y` class in Tailwind so that things look more uniform. | Old | New | | --- | --- | | OLD_WORKSPACE_PROXY | NEW_WORKSPACE_PROXY | --- .../WorkspaceProxyPage/WorkspaceProxyRow.tsx | 56 +++++++------------ 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyRow.tsx b/site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyRow.tsx index 000b74e3d6..dfa85d3f99 100644 --- a/site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyRow.tsx +++ b/site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyRow.tsx @@ -1,4 +1,3 @@ -import { useTheme } from "@emotion/react"; import type { Region, WorkspaceProxy } from "api/typesGenerated"; import { Avatar } from "components/Avatar/Avatar"; import { AvatarData } from "components/Avatar/AvatarData"; @@ -10,7 +9,7 @@ import { } from "components/StatusIndicator/StatusIndicator"; import { TableCell, TableRow } from "components/Table/Table"; import type { ProxyLatencyReport } from "contexts/useProxyLatency"; -import type { FC, ReactNode } from "react"; +import type { FC } from "react"; import { cn } from "utils/cn"; import { getLatencyColor } from "utils/latency"; @@ -73,6 +72,7 @@ export const ProxyRow: FC = ({ proxy, latency }) => {
{statusBadge}
+ = ({ proxy, latency }) => { {shouldShowMessages && ( - + = ({ proxy, extraWarnings, }) => { - const theme = useTheme(); - return ( <> Errors} + title="Errors" + titleClassName="text-content-destructive" messages={proxy.status?.report?.errors} /> Warnings - } + title="Warnings" + titleClassName="text-content-warning" messages={[...(proxy.status?.report?.warnings ?? []), ...extraWarnings]} /> @@ -126,44 +127,27 @@ const ProxyMessagesRow: FC = ({ }; interface ProxyMessagesListProps { - title: ReactNode; + title: string; + titleClassName: string; messages?: readonly string[]; } -const ProxyMessagesList: FC = ({ title, messages }) => { - const theme = useTheme(); - +const ProxyMessagesList: FC = ({ + title, + titleClassName, + messages, +}) => { if (!messages) { return null; } return ( -
-
+
+
{title}
{messages.map((error, index) => ( -
+				
 					{error}
 				
))}