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

studio: center and elipse long text in add entity menu #10895

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading