From cabf2929f2d31cca95e8d3fe277d483276615118 Mon Sep 17 00:00:00 2001 From: Aryan Singh <114330931+aryanas159@users.noreply.github.com> Date: Wed, 11 Oct 2023 01:14:34 +0530 Subject: [PATCH] fix: Repos with long names get cut off (#1769) Signed-off-by: Aryan Singh Co-authored-by: OGBONNA SUNDAY <62995161+OgDev-01@users.noreply.github.com> --- .../table-repository-name.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/components/molecules/TableRepositoryName/table-repository-name.tsx b/components/molecules/TableRepositoryName/table-repository-name.tsx index 22a801bf66..6c962bc06d 100644 --- a/components/molecules/TableRepositoryName/table-repository-name.tsx +++ b/components/molecules/TableRepositoryName/table-repository-name.tsx @@ -1,7 +1,6 @@ import { StaticImageData } from "next/image"; import Avatar from "components/atoms/Avatar/avatar"; -import { truncateString } from "lib/utils/truncate-string"; - +import Tooltip from "components/atoms/Tooltip/tooltip"; interface TableRepositoryNameProps { avatarURL?: string | StaticImageData; fullName: string; @@ -26,12 +25,15 @@ const TableRepositoryName = ({ avatarURL, fullName }: TableRepositoryNameProps): {/* Text */} +
-
- - {name && name.length > 10 ? truncateString(name, 12) : name} - -
+ +
+ + {name} + +
+
{handle ? `@${handle}` : "handle1234"}