fix upcoming event blocks (at least temporarily)

This commit is contained in:
elise
2024-08-10 17:22:32 +02:00
parent 803628d594
commit 18fcb7c752
3 changed files with 8 additions and 14 deletions

View File

@ -56,7 +56,7 @@ export const EventItem = ({
"occurrence" in event &&
event.occurrence?.start && (
<p className={styles.day}>
{formatDate(event.occurrence?.start, "eeee dd.MM.")}
{formatDate(event.occurrence?.start, "eeee dd.MM.")} {formatDate(event.occurrence?.start, "'kl.' HH:mm")}
</p>
)}
<h1 className={styles.title}>{event.title}</h1>
@ -76,7 +76,7 @@ export const EventItem = ({
)}
</div>
)}
{(mode === "calendar" || mode === "singular-time-only") &&
{(mode === "calendar") &&
"occurrence" in event &&
event.occurrence?.start && (
<p className={styles.dates}>

View File

@ -40,29 +40,27 @@
width: var(--size-image-width);
}
.day,
.dates,
.title {
font-size: var(--font-size-body);
font-size: var(--font-size-caption);
line-height: 1.3;
}
.day {
opacity: 0.8;
&:first-letter {
text-transform: uppercase;
}
font-family: var(--font-serif);
font-size: var(--font-size-body);
}
.title {
margin: .2em 0;
}
.day, .dates {
font-size: var(--font-size-caption);
font-size: var(--font-size-body);
line-height: 1.2;
}
.text {
align-self: start;
&:before {
display: none;
}

View File

@ -40,8 +40,4 @@
ul {
display: flex;
}
li {
padding-right: var(--spacing-s);
}
}