From 1dfb17006b804627cd3894db9c70dfca27a93b62 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Mon, 22 Aug 2022 17:00:51 +0200 Subject: [PATCH] Minor fixes --- src/css/sections/podcast.css | 27 ++++++++++++++------------- tasks/fetch_feed.js | 1 + 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/css/sections/podcast.css b/src/css/sections/podcast.css index fecf2d40457..82f8ad68efd 100644 --- a/src/css/sections/podcast.css +++ b/src/css/sections/podcast.css @@ -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; } diff --git a/tasks/fetch_feed.js b/tasks/fetch_feed.js index 01c1932f799..125c8b69ccd 100644 --- a/tasks/fetch_feed.js +++ b/tasks/fetch_feed.js @@ -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