Minor fixes

This commit is contained in:
Dennis Reimann
2022-08-22 17:00:51 +02:00
parent 905516f033
commit 1dfb17006b
2 changed files with 15 additions and 13 deletions

View File

@@ -88,13 +88,6 @@
transition-property: background-color;
transition-duration: var(--transition-duration-fast);
@media (--up_to_M) {
padding: var(--space-l);
}
@media (--M_and_up) {
padding: var(--space-xl);
}
& a {
display: flex;
@@ -105,21 +98,22 @@
}
}
& .media {
margin-right: var(--space-l);
& .title {
word-break: break-word;
}
& .media {
& a,
& img {
display: block;
border-radius: var(--space-s);
@media (--up_to_M) {
height: 60px;
width: 60px;
width: 20vw;
}
@media (--M_and_up) {
height: 100px;
width: 100px;
width: 15vw;
max-width: 7rem;
}
}
}
@@ -134,6 +128,13 @@
& .content {
flex: 1;
@media (--up_to_M) {
padding: var(--space-m) var(--space-l);
}
@media (--M_and_up) {
padding: var(--space-l);
}
& > *:last-child {
margin-bottom: 0;
}

View File

@@ -45,6 +45,7 @@ const parseEpisode = e => {
let [, categoryName = 'News', number, titlePlain] = title.match(/([\w\s]+?)?\s?#(\d+) - (.*)/) || [, , , title]
if (!number) categoryName = 'Verschiedenes'
if (categoryName === 'Der-Weg') categoryName = 'Der Weg'
if (categoryName === 'Buchclub') categoryName = 'Lesestunde'
const firstLine = description.split('\n')[0]
const blockMatch = firstLine.match(/Blockzeit\s(\d+)/)
const block = blockMatch ? parseInt(blockMatch[1]) : null