Skip to content

Commit 0d91626

Browse files
committed
Fixed calendar icon rendering bug in eventsPage
1 parent 46702d1 commit 0d91626

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

components/EventCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function EventCard({ header, body, time, img }: CardInterface) {
4747
height={20}
4848
alt="calendar icon"
4949
/>
50-
<div>&nbsp;{time}</div>
50+
<span>{time}</span>
5151
</div>
5252
</div>
5353
</div>

styles/EventCard.module.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,19 @@
4646
font-family: "Courier New", Courier, monospace;
4747
font-weight: bold;
4848
font-size: 1rem;
49-
display: flex;
49+
display: grid;
50+
grid-template-columns: 20px 1fr;
51+
align-items: center;
5052
margin-top: 15px;
53+
gap: 0.5rem;
54+
}
55+
56+
.time img {
57+
width: 20px;
58+
height: 20px;
59+
flex-shrink: 0;
60+
vertical-align: middle;
61+
margin-bottom: 2px;
5162
}
5263

5364
.event-image-wrapper {

0 commit comments

Comments
 (0)