Fix dev user switcher tooltip covering dropdown options

The MUI Tooltip stayed anchored while the Select menu was open (the select
keeps focus) and overlapped the first user options. Use a native title
attribute instead, which browsers suppress while the popup is open.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
ang3l12
2026-07-28 10:22:13 -06:00
parent ba6a61a5bf
commit 12383b2225

View File

@@ -43,8 +43,10 @@ const DEV_USERS = [
];
function DevUserSwitcher() {
// Native title (not a MUI Tooltip): a Tooltip stays anchored while the
// dropdown is open and covers the first menu items.
return (
<Tooltip title="AUTH_MODE=dev — switch the simulated user">
<Box component="span" title="AUTH_MODE=dev — switch the simulated user">
<Select
size="small"
value={getDevUser()}
@@ -66,7 +68,7 @@ function DevUserSwitcher() {
</MenuItem>
))}
</Select>
</Tooltip>
</Box>
);
}