Skip to content

Commit

Permalink
fix(explorer): description missing on project card with footer
Browse files Browse the repository at this point in the history
  • Loading branch information
hussedev committed Jun 10, 2024
1 parent e0f8b97 commit ea947bc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/grant-explorer/src/features/round/ViewRoundPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
getLocalTime,
formatLocalDateAsISOString,
renderToPlainText,
truncateDescription,
useTokenPrice,
TToken,
getTokensByChainId,
Expand Down Expand Up @@ -757,7 +756,10 @@ function ProjectCard(props: {
cartProject.chainId = Number(props.chainId);

return (
<BasicCard className="relative w-full" data-testid="project-card">
<BasicCard
className={`relative w-full ${props.showProjectCardFooter ? "h-[370px]" : "h-[310px]"}`}
data-testid="project-card"
>
<Link
to={`${roundRoutePath}/${project.grantApplicationId}`}
data-testid="project-detail-link"
Expand Down Expand Up @@ -793,12 +795,9 @@ function ProjectCard(props: {
</div>
<CardDescription
data-testid="project-description"
className={`h-[${props.showProjectCardFooter ? "130px" : "100px"}] overflow-hidden mb-1 !text-sm`}
className={`mb-1 !text-sm`}
>
{truncateDescription(
renderToPlainText(project.projectMetadata.description),
90
)}
{renderToPlainText(project.projectMetadata.description)}
</CardDescription>
</CardContent>
</Link>
Expand Down

0 comments on commit ea947bc

Please sign in to comment.