From 48aa0751d90e789651640499698567b260e7d6f0 Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Tue, 16 Jun 2026 16:30:35 +0200 Subject: [PATCH] feat(player): scale episode title font size to its length (#81) The player rendered every episode title at a fixed 1.125rem, so long podcast titles dominated the player pane. Reduce the base to 1rem and ease the size down as the title grows (via a CSS clamp() fed by a --title-char-count custom property) toward a readable 0.875rem floor, so short titles stay comfortable and long ones stay contained. word-break: break-word remains the actual overflow backstop. Closes #81 --- src/ui/PodcastView/EpisodePlayer.svelte | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/ui/PodcastView/EpisodePlayer.svelte b/src/ui/PodcastView/EpisodePlayer.svelte index 9c2a9bd..b7c4189 100644 --- a/src/ui/PodcastView/EpisodePlayer.svelte +++ b/src/ui/PodcastView/EpisodePlayer.svelte @@ -54,6 +54,9 @@ $: showQueue = $plugin?.settings?.autoQueue !== false || $queue.episodes.length > 0; + // Title length feeds the CSS length-based downscaling on .podcast-title (issue #81). + $: titleCharCount = $currentEpisode?.title?.length ?? 0; + let isHoveringArtwork: boolean = false; let isLoading: boolean = true; let playerVolume: number = 1; @@ -364,7 +367,7 @@ -

{$currentEpisode.title}

+

{$currentEpisode.title}

{#await srcPromise then src}