Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
center and elipse long text (#10895)
Browse files Browse the repository at this point in the history
  • Loading branch information
achen5671 authored Aug 7, 2024
1 parent 4cbb8be commit 1cf3ed6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ const SceneElementListItem = ({
return (
<button
className={twMerge(
'col-span-1 grid place-items-center gap-1 text-ellipsis rounded-xl border-[1px] border-[#212226] bg-theme-primary px-3 py-2.5 text-sm font-medium',
'place-items-center gap-1 rounded-xl border-[1px] border-[#212226] bg-theme-primary px-3 py-2.5 text-sm font-medium',
selected ? 'text-primary border-[#42454D] bg-[#212226]' : 'text-[#B2B5BD]'
)}
onClick={onClick}
>
{icon}
{categoryTitle}
<div className="flex flex-col items-center justify-center">
{icon}
<div className="max-w-full overflow-hidden text-ellipsis whitespace-nowrap">{categoryTitle}</div>
</div>
</button>
)
}
Expand Down

0 comments on commit 1cf3ed6

Please sign in to comment.