Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: long name

shuai255f76b06ac9
diff --git a/ui/src/pages/Questions/Detail/components/InviteToAnswer/index.tsx b/ui/src/pages/Questions/Detail/components/InviteToAnswer/index.tsx
index b3c41631..f5ced8fb 100644
--- a/ui/src/pages/Questions/Detail/components/InviteToAnswer/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/InviteToAnswer/index.tsx
@@ -132,7 +132,7 @@ const Index: FC<Props> = ({ questionId, readOnly = false }) => {
className="rounded-1"
alt={user.display_name}
/>
- <span className="text-nowrap ms-2">{user.display_name}</span>
+ <span className="text-break ms-2">{user.display_name}</span>
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
<span
className="px-1 me-n1"
@@ -153,7 +153,7 @@ const Index: FC<Props> = ({ questionId, readOnly = false }) => {
alt={user.display_name}
className="rounded-1"
/>
- <small className="text-nowrap ms-2">{user.display_name}</small>
+ <small className="ms-2">{user.display_name}</small>
</Link>
);
})}