This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.4.3/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 6f87e4aa6b30f2f5484117d76539b89333d8ccfa
Author: shuai <[email protected]>
AuthorDate: Wed Dec 11 16:19:35 2024 +0800

    fix: the list title of link issues, host issues and related issues shows 
three lines on the left
---
 ui/src/components/HotQuestions/index.tsx                            | 2 +-
 ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx  | 2 +-
 ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

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 ${

Reply via email to