Skip to content

Commit

Permalink
fix: whitespace on stats search and select popover
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-jayson committed Nov 18, 2024
1 parent 0c5e797 commit 630ec6e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/wiki/statistics/tournaments-popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ export default function StatsContainer({ children, tourNames }: IStats) {
<PopoverTrigger asChild>
<Button
variant="outline"
className="w-full max-w-md justify-between border-navy-700 font-semibold data-[state=open]:bg-white/5"
className="w-full max-w-md justify-start overflow-hidden text-ellipsis whitespace-nowrap border-navy-700 text-sm font-semibold data-[state=open]:bg-white/5"
>
{selectedTournament
? tourNames.find(
(tourney) => tourney.tournamentPath === selectedTournament
)?.tournamentName
: "Select a tournament..."}
<span className="block overflow-hidden text-ellipsis whitespace-nowrap">
{selectedTournament
? tourNames.find(
(tourney) => tourney.tournamentPath === selectedTournament
)?.tournamentName
: "Select tournament..."}
</span>
</Button>
</PopoverTrigger>
<PopoverContent className="w-full max-w-md border-navy-700 p-0">
Expand Down

1 comment on commit 630ec6e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for mlbb-fyi ready!

✅ Preview
https://mlbb-n3uosipmd-jinjays.vercel.app

Built with commit 630ec6e.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.