@@ -24,11 +24,7 @@ import Skeleton from "@mui/material/Skeleton"
24
24
import { BUTTON_SM_HEIGHT } from "theme/theme"
25
25
import { ProxyStatusLatency } from "components/ProxyStatusLatency/ProxyStatusLatency"
26
26
import { usePermissions } from "hooks/usePermissions"
27
- import {
28
- HelpTooltip ,
29
- HelpTooltipText ,
30
- HelpTooltipTitle ,
31
- } from "components/Tooltips/HelpTooltip"
27
+ import Typography from "@mui/material/Typography"
32
28
33
29
export const USERS_LINK = `/users?filter=${ encodeURIComponent ( "status:active" ) } `
34
30
@@ -191,7 +187,6 @@ export const NavbarView: FC<NavbarViewProps> = ({
191
187
const ProxyMenu : FC < { proxyContextValue : ProxyContextValue } > = ( {
192
188
proxyContextValue,
193
189
} ) => {
194
- const styles = useStyles ( )
195
190
const buttonRef = useRef < HTMLButtonElement > ( null )
196
191
const [ isOpen , setIsOpen ] = useState ( false )
197
192
const [ refetchDate , setRefetchDate ] = useState < Date > ( )
@@ -275,33 +270,39 @@ const ProxyMenu: FC<{ proxyContextValue: ProxyContextValue }> = ({
275
270
onClose = { closeMenu }
276
271
sx = { { "& .MuiMenu-paper" : { py : 1 } } }
277
272
>
278
- < MenuItem
279
- sx = { [
280
- { fontSize : 14 } ,
281
- { "&:hover" : { backgroundColor : "transparent" } } ,
282
- { wordWrap : "break-word" } ,
283
- { inlineSize : "200px" } ,
284
- { whiteSpace : "normal" } ,
285
- { textAlign : "center" } ,
286
- ] }
287
- onClick = { ( e ) => {
288
- // Stop the menu from closing
289
- e . stopPropagation ( )
273
+ < Box
274
+ sx = { {
275
+ w : "100%" ,
276
+ fontSize : 14 ,
277
+ padding : 2 ,
278
+ maxWidth : "320px" ,
279
+ lineHeight : "140%" ,
290
280
} }
291
281
>
292
- < div >
282
+ < Typography
283
+ component = "h4"
284
+ sx = { {
285
+ fontSize : "inherit" ,
286
+ fontWeight : 600 ,
287
+ lineHeight : "inherit" ,
288
+ margin : 0 ,
289
+ } }
290
+ >
293
291
Reduce workspace latency by selecting the region nearest you.
294
- { /* This was always on a newline below the text. This puts it on the same line.
295
- It still doesn't look great, but it is marginally better. */ }
296
- < HelpTooltip buttonClassName = { styles . displayInitial } >
297
- < HelpTooltipTitle > Workspace Proxy Selection</ HelpTooltipTitle >
298
- < HelpTooltipText >
299
- Only applies to web connections. Local ssh connections will
300
- automatically select the nearest region based on latency.
301
- </ HelpTooltipText >
302
- </ HelpTooltip >
303
- </ div >
304
- </ MenuItem >
292
+ </ Typography >
293
+ < Typography
294
+ component = "p"
295
+ sx = { {
296
+ fontSize : "inherit" ,
297
+ color : ( theme ) => theme . palette . text . secondary ,
298
+ lineHeight : "inherit" ,
299
+ marginTop : 0.5 ,
300
+ } }
301
+ >
302
+ * Only applies to web connections. Local ssh connections will
303
+ automatically select the nearest region based on latency.
304
+ </ Typography >
305
+ </ Box >
305
306
< Divider sx = { { borderColor : ( theme ) => theme . palette . divider } } />
306
307
{ proxyContextValue . proxies ?. map ( ( proxy ) => (
307
308
< MenuItem
0 commit comments