Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

Commit 83b5412

Browse files
committed
Added ellipsis for long description
1 parent 1c18561 commit 83b5412

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/projectCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
4242
)}
4343
</span>
4444
<p className="text-sm text-gray-600 mb-2">by {project.studentName}</p>
45-
<p className="text-gray-700 mb-4">{project.description}</p>
45+
<p className="line-clamp-3 text-gray-700 mb-4 max-h-24 overflow-hidden overflow-ellipsis">{project.description}</p>
4646

4747
<div className="flex flex-wrap gap-2 mb-4">
4848
{project.tags.map((tag) => (

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
body {
44
font-family: "Bricolage Grotesque", serif;
5-
background-image: url("assets/grid.svg"); /* SVG content encoded */
5+
background-image: url("assets/grid.svg");
66
background-size: 150px 150px;
77
background-repeat: repeat;
88
}

0 commit comments

Comments
 (0)