diff --git a/site/src/modules/dashboard/Navbar/ProxyMenu.tsx b/site/src/modules/dashboard/Navbar/ProxyMenu.tsx index 6769afd5177..ea32691c8d9 100644 --- a/site/src/modules/dashboard/Navbar/ProxyMenu.tsx +++ b/site/src/modules/dashboard/Navbar/ProxyMenu.tsx @@ -138,53 +138,51 @@ export const ProxyMenu: React.FC = ({ proxyContextValue }) => { )} {proxyContextValue.proxies && ( -
- - {sortProxiesByLatency(proxyContextValue.proxies, latencies).map( - (proxy) => ( - { - e.preventDefault(); - if (!proxy.healthy) { - toast.error( - `Failed to select proxy "${proxy.display_name}".`, - { - description: - "Please select a healthy workspace proxy.", - }, - ); - closeMenu(); - return; - } - - proxyContextValue.setProxy(proxy); + + {sortProxiesByLatency(proxyContextValue.proxies, latencies).map( + (proxy) => ( + { + e.preventDefault(); + if (!proxy.healthy) { + toast.error( + `Failed to select proxy "${proxy.display_name}".`, + { + description: + "Please select a healthy workspace proxy.", + }, + ); closeMenu(); - }} - > -
-
- -
+ return; + } - {proxy.display_name} - - +
+
+
- - ), - )} - -
+ + {proxy.display_name} + + +
+
+ ), + )} +
)} diff --git a/site/src/modules/resources/AgentRow.tsx b/site/src/modules/resources/AgentRow.tsx index 016b2c274cc..20676b4100c 100644 --- a/site/src/modules/resources/AgentRow.tsx +++ b/site/src/modules/resources/AgentRow.tsx @@ -633,7 +633,7 @@ export const AgentRow: React.FC = ({ = ({ Move to project - + {projectsQuery.isPending && Loading projects…} {projectsQuery.isError && ( diff --git a/site/src/pages/AgentsPage/components/PRMenuLinks.tsx b/site/src/pages/AgentsPage/components/PRMenuLinks.tsx index 486aa392e89..9c7d3443855 100644 --- a/site/src/pages/AgentsPage/components/PRMenuLinks.tsx +++ b/site/src/pages/AgentsPage/components/PRMenuLinks.tsx @@ -6,9 +6,9 @@ import { originRepoLabel } from "../utils/originRepoLabel"; import { prNumber } from "../utils/pullRequest"; import { getPRIconConfig } from "./ChatsSidebar/tree/statusConfig"; -/** Menu content for PR links. The height fits five rows before it scrolls. */ +/** Menu content for PR links. The height fits up to five rows before it scrolls. */ export const prMenuContentClassName = - "max-h-50 w-72 overflow-auto **:[[role=menuitem]]:text-[13px]"; + "max-h-[min(12.5rem,var(--radix-popper-available-height))] w-72 **:[[role=menuitem]]:text-[13px]"; type PRMenuLinksProps = { readonly prStatuses: readonly ChatDiffStatus[];