From a4e1218783a0f3e7926ebe260b076a400d77a8fc Mon Sep 17 00:00:00 2001 From: Ayusman Parida Date: Mon, 14 Apr 2025 18:29:49 +0530 Subject: [PATCH] fix: fix spacing between contents Fix between contents Refs:[] --- src/app/projects/components/ProjectCard.tsx | 31 ++++++++++----------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/app/projects/components/ProjectCard.tsx b/src/app/projects/components/ProjectCard.tsx index 671e4c45..c761b30f 100644 --- a/src/app/projects/components/ProjectCard.tsx +++ b/src/app/projects/components/ProjectCard.tsx @@ -29,13 +29,13 @@ export default function ProjectCard({ const [expandDescription, setExpandDescription] = useState(false); return ( -
- {/* Top content section */} +
-
-

+
+

{title}

+ {parentTitle !== "Upcoming Projects" && stars !== undefined && (
@@ -44,28 +44,26 @@ export default function ProjectCard({ )}
- {/* Description section with fixed height */} + {/* Description - fixed height with toggleable expansion */}
{ if (shortDescription.length > 120) setExpandDescription(!expandDescription); }} - style={{ - minHeight: expandDescription ? "auto" : "4.1rem", - }} >

{shortDescription}

- - {/* Only show toggle if the content is long */} + {/* Show toggle outside the paragraph */} {shortDescription.length > 120 && ( {expandDescription ? "less" : "more"} @@ -73,9 +71,10 @@ export default function ProjectCard({ )}
+ {/* Tags section - fixed height + horizontal scroll if overflow */} {parentTitle !== "Upcoming Projects" && tags && tags.length > 0 && ( -
-
+
+
{tags.map((tag, index) => (