Skip to content

Commit

Permalink
style: 🐛 Fixed mobile CSS for eventContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Genio2003 committed Jan 29, 2024
1 parent f5270c5 commit 3271b46
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/routes/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ const useStyles = makeStyles({
"@media (max-width: 578px)": {
rowGap: "0.2rem",
overflowY: "hidden",
},
"@media (max-width: 350px), (max-height: 600px)": {
display: "none",
},
}
},
eventHeader: {
display: "flex",
Expand Down Expand Up @@ -529,7 +526,7 @@ export function Calendar() {
<Card key={day.getTime()} className={mergeClasses(styles.card, now.toLocaleDateString() === day.toLocaleDateString() && styles.todayBadge)}>
<div className={styles.eventHeader}>
<Subtitle2>{day.toLocaleDateString([], { day: "numeric" })}</Subtitle2>
{screenMediaQuery && isCurrentViewMonth && filteredEvents.length > 0 ? <Badge size="small" color={now.toLocaleDateString() === day.toLocaleDateString() ? "subtle" : undefined}>{filteredEvents.length}</Badge> : undefined}
{isCurrentViewMonth && filteredEvents.length > 0 ? <Badge size={ screenMediaQuery ? "small" : "medium"} color={now.toLocaleDateString() === day.toLocaleDateString() ? "subtle" : undefined}>{filteredEvents.length}</Badge> : undefined}
</div>
<div className={styles.eventContainer} style={screenMediaQuery && !isCurrentViewMonth ? { overflowY: "auto" } : undefined}>
{/* TODO Show skeletons when loading events */}
Expand Down

0 comments on commit 3271b46

Please sign in to comment.