Skip to content

Commit c435c1a

Browse files
committed
refactor: truncate user names in comment section
1 parent 64867ad commit c435c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/components/comment-section/comment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const Comment = (props: CommentProps) => {
9090
<div className='flex-1 overflow-hidden'>
9191
<div className='ml-0.5 flex h-8 items-center justify-between'>
9292
<div className='flex items-center gap-2 text-sm'>
93-
<div className='font-semibold'>{name}</div>
93+
<div className='max-w-35 truncate font-semibold sm:max-w-none'>{name}</div>
9494
<div className='text-muted-foreground'>
9595
{formattedDate ? (
9696
<Tooltip>

0 commit comments

Comments
 (0)