Fix teams button overflow in mobile

This commit is contained in:
Francis Cao committed 2026-02-21 13:34:15 -08:00
1 parent 4605f5cb06
commit 98d1d85ed1
1 file changed
+2 -1
+2 -1
View File
@@ -23,6 +23,7 @@ export function TeamsButton() {
const { user } = useLoginQuery();
const { t, labels } = useMessages();
const { teamId, router } = useNavigation();
const { isPhone } = useMobile();
const team = user?.teams?.find(({ id }) => id === teamId);
const selectedKeys = new Set([teamId || 'user']);
const label = teamId ? team?.name : user.username;
@@ -52,7 +53,7 @@ export function TeamsButton() {
position="relative"
gap
maxHeight="40px"
minWidth="200px"
minWidth={isPhone ? '100px' : '200px'}
maxWidth="200px"
>
<Icon>{teamId ? <Users /> : <User />}</Icon>