refactor: use data label instead of static label

This commit is contained in:
Mads Kelberg
2025-11-13 23:23:08 +01:00
committed by GitHub
parent cf67874221
commit fe651691e3

View File

@@ -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);
}