From bdc4b3cf7accd7b0fce028aed655f1974c97b94d Mon Sep 17 00:00:00 2001
From: Youssef
Date: Fri, 15 Oct 2021 11:39:47 +0100
Subject: [PATCH] fix: truncate link in body and in breadcrumb
---
frontend/src/component/common/BreadcrumbNav/BreadcrumbNav.tsx | 4 ++--
frontend/src/component/feature/FeatureView2/FeatureView2.tsx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/frontend/src/component/common/BreadcrumbNav/BreadcrumbNav.tsx b/frontend/src/component/common/BreadcrumbNav/BreadcrumbNav.tsx
index e746891fa8..a2ef4f3f5f 100644
--- a/frontend/src/component/common/BreadcrumbNav/BreadcrumbNav.tsx
+++ b/frontend/src/component/common/BreadcrumbNav/BreadcrumbNav.tsx
@@ -46,7 +46,7 @@ const BreadcrumbNav = () => {
styles.breadcrumbNavParagraph
}
>
- {path}
+ {path.substring(0,30)}
);
}
@@ -67,7 +67,7 @@ const BreadcrumbNav = () => {
className={styles.breadcrumbLink}
to={link}
>
- {path}
+ {path.substring(0,30)}
);
})}
diff --git a/frontend/src/component/feature/FeatureView2/FeatureView2.tsx b/frontend/src/component/feature/FeatureView2/FeatureView2.tsx
index 5db9e05518..a3aed60be5 100644
--- a/frontend/src/component/feature/FeatureView2/FeatureView2.tsx
+++ b/frontend/src/component/feature/FeatureView2/FeatureView2.tsx
@@ -103,7 +103,7 @@ const FeatureView2 = () => {
return (
- The feature {featureId} does not exist. Do
+ The feature {featureId.substring(0,30)} does not exist. Do
you want to
create it
?