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: the list title of link issues, host issues and related issues shows three lines on the left

shuai6f87e4aa6b30
diff --git a/ui/src/components/HotQuestions/index.tsx b/ui/src/components/HotQuestions/index.tsx
index b6148c01..689f58f8 100644
--- a/ui/src/components/HotQuestions/index.tsx
+++ b/ui/src/components/HotQuestions/index.tsx
@@ -45,7 +45,7 @@ const HotQuestions: FC = () => {
as={Link}
to={pathFactory.questionLanding(li.id, li.url_title)}
action>
- <div className="link-dark">{li.title}</div>
+ <div className="link-dark text-truncate-3">{li.title}</div>
{li.answer_count > 0 ? (
<div
className={`d-flex align-items-center small mt-1 ${
diff --git a/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx b/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx
index 208953b6..22952af0 100644
--- a/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx
@@ -64,7 +64,7 @@ const Index: FC<Props> = ({ id }) => {
key={item.id}
as={Link}
to={pathFactory.questionLanding(item.id, item.url_title)}>
- <div className="link-dark">{item.title}</div>
+ <div className="link-dark text-truncate-3">{item.title}</div>
{item.answer_count > 0 && (
<div
className={`mt-1 small me-2 ${
diff --git a/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx b/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx
index 15296bdf..a8934436 100644
--- a/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx
@@ -54,7 +54,7 @@ const Index: FC<Props> = ({ id }) => {
key={item.id}
as={Link}
to={pathFactory.questionLanding(item.id, item.url_title)}>
- <div className="link-dark">{item.title}</div>
+ <div className="link-dark text-truncate-3">{item.title}</div>
{item.answer_count > 0 && (
<div
className={`mt-1 small me-2 ${