Skip to content

Commit

Permalink
fix: Use ellipses for long organization names
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfger committed Jan 30, 2025
1 parent 2eb2176 commit f04392c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ export const TenantSwitch = () => {
<>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline">
{currentTenant?.name} <ChevronDown className="ml-2 mr--2" />
<Button variant="outline" className="overflow-hidden">
<div className="overflow-ellipsis overflow-hidden whitespace-nowrap max-w-full">{currentTenant?.name}</div>
<ChevronDown className="ml-2 mr--2" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent>
Expand Down

0 comments on commit f04392c

Please sign in to comment.