Skip to content

Commit

Permalink
Remove truncation on topbar dropdown (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark authored Jul 17, 2024
1 parent 17ae890 commit be0f087
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/components/TopBarPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { PAGE_SIZE } from '~/table/QueryTable'
import { Button } from '~/ui/lib/Button'
import { DropdownMenu } from '~/ui/lib/DropdownMenu'
import { Identicon } from '~/ui/lib/Identicon'
import { Truncate } from '~/ui/lib/Truncate'
import { Wrap } from '~/ui/util/wrap'
import { pb } from '~/util/path-builder'

Expand Down Expand Up @@ -118,8 +117,8 @@ const TopBarPicker = (props: TopBarPickerProps) => {
return (
<DropdownMenu.Item asChild key={label}>
<Link to={to} className={cn({ 'is-selected': isSelected })}>
<span className="flex w-full items-center justify-between">
<Truncate text={label} maxLength={24} />
<span className="flex w-full items-center gap-2">
{label}
{isSelected && <Success12Icon className="-mr-3 block" />}
</span>
</Link>
Expand Down

0 comments on commit be0f087

Please sign in to comment.