Skip to content

Commit 4014e33

Browse files
committed
add max string
1 parent 0a57a13 commit 4014e33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/frontend/src/components/launches/tags.component.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export const TagsComponent: FC<{
176176
);
177177
return (
178178
<div
179-
className="flex flex-row items-center gap-2 p-2 cursor-pointer hover:bg-customColor1 group"
179+
className="flex flex-row items-center gap-2 p-2 cursor-pointer hover:bg-customColor1 group max-w-72"
180180
{...option}
181181
>
182182
{findTag ? (
@@ -202,7 +202,9 @@ export const TagsComponent: FC<{
202202
+
203203
</div>
204204
)}
205-
{option.option.label}
205+
<div className="max-w-24 overflow-hidden overflow-ellipsis whitespace-nowrap">
206+
{option.option.label}
207+
</div>
206208
<div className="flex items-center flex-grow flex-row-reverse">
207209
{findTag && (
208210
<Button

0 commit comments

Comments
 (0)