From fe651691e360a7aa2bf971a48b9edef683c190bc Mon Sep 17 00:00:00 2001 From: Mads Kelberg <35922365+MadsKelberg@users.noreply.github.com> Date: Thu, 13 Nov 2025 23:23:08 +0100 Subject: [PATCH] refactor: use data label instead of static label --- .../add-ons/custom-media-covers-nightly.css | 36 ++----------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/Theme/assets/add-ons/custom-media-covers-nightly.css b/Theme/assets/add-ons/custom-media-covers-nightly.css index 4678864..ef9c817 100644 --- a/Theme/assets/add-ons/custom-media-covers-nightly.css +++ b/Theme/assets/add-ons/custom-media-covers-nightly.css @@ -144,38 +144,6 @@ div[data-collectiontype="playlists"] .cardImageContainer.cardContent { background-image: var(--urlPlaylistsCover) !important; } -div[data-collectiontype="movies"] .cardImageContainer.cardContent::before { - content: "Movies"; -} - -div[data-collectiontype="tvshows"] .cardImageContainer.cardContent::before { - content: "TV Shows"; -} - -div[data-collectiontype="livetv"] .cardImageContainer.cardContent::before { - content: "Live TV"; -} - -div[data-collectiontype="music"] .cardImageContainer.cardContent::before { - content: "Music"; -} - -div[data-collectiontype="homevideos"] .cardImageContainer.cardContent::before { - content: "Home Videos"; -} - -div[data-collectiontype="books"] .cardImageContainer.cardContent::before { - content: "Books"; -} - -div[data-collectiontype="boxsets"] .cardImageContainer.cardContent::before { - content: "Collections"; -} - -div[data-collectiontype="folders"] .cardImageContainer.cardContent::before { - content: "Folders"; -} - -div[data-collectiontype="playlists"] .cardImageContainer.cardContent::before { - content: "Playlists"; +div[data-type="CollectionFolder"] .cardImageContainer.cardContent::before { + content: attr(aria-label); }