Skip to content

Commit

Permalink
UI|Fix: ProjectCard text overflow
Browse files Browse the repository at this point in the history
Fixes #360
  • Loading branch information
AbdulrhmnGhanem committed Jun 20, 2022
1 parent 7969198 commit cb8c39c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/components/ProjectCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ const ProjectCard = ({ name, summary, ownerName, multiParentName }) => {
</div>
</div>
<Card.Content>
<Card.Header data-cy="project-card-name">{name}</Card.Header>
<Card.Meta>{ownerName}</Card.Meta>
<Card.Description>{summary}</Card.Description>
<Card.Header className={styles.cardText} data-cy="project-card-name">
{name}
</Card.Header>
<Card.Meta className={styles.cardText}>{ownerName}</Card.Meta>
<Card.Description className={styles.cardText}>{summary}</Card.Description>
</Card.Content>
</Card>
</Link>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/components/ProjectCard/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
.card:hover {
text-decoration: none;
}

.cardText {
overflow-wrap: break-word;
}

0 comments on commit cb8c39c

Please sign in to comment.