From 35a28207f3814325f9ae7844c2018c13e28e2f11 Mon Sep 17 00:00:00 2001 From: HunainMulla Date: Mon, 22 Sep 2025 15:45:57 +0530 Subject: [PATCH 1/2] Fixed the issue of button alignment --- src/components/IssueList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/IssueList.tsx b/src/components/IssueList.tsx index eb32a98..9a0f555 100644 --- a/src/components/IssueList.tsx +++ b/src/components/IssueList.tsx @@ -111,7 +111,7 @@ export default function IssueList(props: IssueListI) { rel="noreferrer" href={`https://github.com/${profile}`} > - {profile} + {profile.slice(0, 14)} From f993afdccf9465917bfa75d05e28d41b3101527e Mon Sep 17 00:00:00 2001 From: HunainMulla Date: Mon, 22 Sep 2025 15:56:27 +0530 Subject: [PATCH 2/2] Added condition for slicing --- src/components/IssueList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/IssueList.tsx b/src/components/IssueList.tsx index 9a0f555..4fb9a6f 100644 --- a/src/components/IssueList.tsx +++ b/src/components/IssueList.tsx @@ -111,7 +111,7 @@ export default function IssueList(props: IssueListI) { rel="noreferrer" href={`https://github.com/${profile}`} > - {profile.slice(0, 14)} + {profile.length > 15 ? profile.slice(0, 17)+"..." : profile}