Skip to content

Commit 255f76b

Browse files
author
shuai
committed
fix: long name
1 parent 1aad576 commit 255f76b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • ui/src/pages/Questions/Detail/components/InviteToAnswer

ui/src/pages/Questions/Detail/components/InviteToAnswer/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const Index: FC<Props> = ({ questionId, readOnly = false }) => {
132132
className="rounded-1"
133133
alt={user.display_name}
134134
/>
135-
<span className="text-nowrap ms-2">{user.display_name}</span>
135+
<span className="text-break ms-2">{user.display_name}</span>
136136
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
137137
<span
138138
className="px-1 me-n1"
@@ -153,7 +153,7 @@ const Index: FC<Props> = ({ questionId, readOnly = false }) => {
153153
alt={user.display_name}
154154
className="rounded-1"
155155
/>
156-
<small className="text-nowrap ms-2">{user.display_name}</small>
156+
<small className="ms-2">{user.display_name}</small>
157157
</Link>
158158
);
159159
})}

0 commit comments

Comments
 (0)