Skip to content

Commit e756baa

Browse files
refactor(site): simplify proxy menu (#10496)
1 parent ae20df4 commit e756baa

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

site/src/components/Dashboard/Navbar/NavbarView.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
304304
if (isLoading) {
305305
return (
306306
<Skeleton
307-
width="160px"
307+
width="110px"
308308
height={BUTTON_SM_HEIGHT}
309-
sx={{ borderRadius: "4px", transform: "none" }}
309+
sx={{ borderRadius: "9999px", transform: "none" }}
310310
/>
311311
);
312312
}
@@ -319,13 +319,13 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
319319
size="small"
320320
endIcon={<KeyboardArrowDownOutlined />}
321321
sx={{
322-
borderRadius: "4px",
322+
borderRadius: "999px",
323323
"& .MuiSvgIcon-root": { fontSize: 14 },
324324
}}
325325
>
326326
{selectedProxy ? (
327-
<Box display="flex" gap={2} alignItems="center">
328-
<Box width={14} height={14} lineHeight={0}>
327+
<Box display="flex" gap={1} alignItems="center">
328+
<Box width={16} height={16} lineHeight={0}>
329329
<Box
330330
component="img"
331331
src={selectedProxy.icon_url}
@@ -335,7 +335,6 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
335335
height="100%"
336336
/>
337337
</Box>
338-
{selectedProxy.display_name}
339338
<ProxyStatusLatency
340339
latency={latencies?.[selectedProxy.id]?.latencyMS}
341340
isLoading={proxyLatencyLoading(selectedProxy)}

0 commit comments

Comments
 (0)