From 98d1d85ed106c5e2c6f18f09715f82a199a7268f Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Sat, 21 Feb 2026 13:34:15 -0800 Subject: [PATCH] Fix teams button overflow in mobile --- src/components/input/TeamsButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/input/TeamsButton.tsx b/src/components/input/TeamsButton.tsx index 527ab1fa9..f44ba83a5 100644 --- a/src/components/input/TeamsButton.tsx +++ b/src/components/input/TeamsButton.tsx @@ -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" > {teamId ? : }