From 5a30b610b3065965aaee113bf26568b725d3b730 Mon Sep 17 00:00:00 2001
From: Ariful Alam
Date: Thu, 19 Jan 2023 17:02:52 +0600
Subject: [PATCH] Truncate long text
---
src/components/details/index.jsx | 11 ++++-------
src/components/project/index.jsx | 2 +-
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/src/components/details/index.jsx b/src/components/details/index.jsx
index d84144a..61160aa 100644
--- a/src/components/details/index.jsx
+++ b/src/components/details/index.jsx
@@ -34,14 +34,11 @@ const ListItem = ({ icon, title, value, link, skeleton = false }) => {
className={`${
skeleton ? 'flex-grow' : ''
} text-sm font-normal text-right mr-2 ml-3 ${link ? 'truncate' : ''}`}
+ style={{
+ wordBreak: 'break-word',
+ }}
>
-
- {value}
-
+ {value}
);
diff --git a/src/components/project/index.jsx b/src/components/project/index.jsx
index b309c10..0e43440 100644
--- a/src/components/project/index.jsx
+++ b/src/components/project/index.jsx
@@ -96,7 +96,7 @@ const Project = ({ repo, loading, github, googleAnalytics }) => {
{item.description}
-