Skip to content

Commit 4b54ae4

Browse files
committed
chore: Add helper text to latency picker
1 parent 078a3cf commit 4b54ae4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

site/src/components/Navbar/NavbarView.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,23 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
269269
onClose={closeMenu}
270270
sx={{ "& .MuiMenu-paper": { py: 1 } }}
271271
>
272+
<MenuItem
273+
sx={[
274+
{ fontSize: 14 },
275+
{ "&:hover": { backgroundColor: "transparent" } },
276+
{ wordWrap: "break-word" },
277+
{ inlineSize: "200px" },
278+
{ whiteSpace: "normal" },
279+
{ textAlign: "center" },
280+
]}
281+
onClick={(e) => {
282+
// Stop the menu from closing
283+
e.stopPropagation()
284+
}}
285+
>
286+
Select the closest region to you to improve workspace connections.
287+
</MenuItem>
288+
<Divider sx={{ borderColor: (theme) => theme.palette.divider }} />
272289
{proxyContextValue.proxies?.map((proxy) => (
273290
<MenuItem
274291
onClick={() => {

0 commit comments

Comments
 (0)