Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/components/CommunityPortal/CPDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ export function CPDashboard() {
<div className={styles.eventCardImgContainer}>
<FixedRatioImage src={event.image} alt={event.title} fallback={FALLBACK_IMG} />
</div>
<CardBody>
<h5 className={styles.eventTitle}>{event.title}</h5>
<CardBody className={styles.eventCardBody}>
<h5 className={styles.eventTitle} title={event.title}>
{event.title}
</h5>
<p className={styles.eventDate}>
<FaCalendarAlt className={styles.eventIcon} /> {formatDate(event.date)}
</p>
Expand Down
6 changes: 6 additions & 0 deletions src/components/CommunityPortal/CPDashboard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@

.eventCardCol {
display: flex;
margin-bottom: 1.5rem;
}

.eventCard:hover {
Expand All @@ -353,6 +354,7 @@

.eventCard {
width: 100%;
height: 100%;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
Expand Down Expand Up @@ -386,6 +388,10 @@
font-weight: bold;
font-size: 1.3rem;
line-height: 1.4;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: default;
}

.eventDate,
Expand Down
Loading