fix(series): remove library switcher from detail page, add title tooltips to BookCard

Remove the library selector dropdown from the series detail page
since the page is scoped to the library from the browse page.
Replace it with a simple '← All Series' back link in the sticky bar.

Add title attributes to the shared BookCard template so the full
book title and author are visible on hover (useful for truncated
text with line-clamp).
This commit is contained in:
2026-05-08 20:58:43 -04:00
parent ddc14e3314
commit 355ae5f7a9
5 changed files with 175 additions and 244 deletions
+3 -3
View File
@@ -151,7 +151,7 @@ templ CollectionCarousel(section handlers.SectionData) {
}
templ BookCard(item handlers.BookInfo) {
<a href={ "/media/" + item.MediaItemID }>
<a href={ "/media/" + item.MediaItemID } title={ item.Title }>
<div
class="book-card flex-shrink-0 w-36 rounded-lg overflow-hidden snap-start cursor-pointer
transition-transform duration-200 hover:scale-105"
@@ -180,11 +180,11 @@ templ BookCard(item handlers.BookInfo) {
}
</div>
<div class="book-card-text px-2 py-1 bg-[color-mix(in_srgb,var(--wood-border)_40%,transparent)]">
<h3 class="font-semibold text-base line-clamp-2" style="color: var(--text-primary)">
<h3 class="font-semibold text-base line-clamp-2" style="color: var(--text-primary)" title={ item.Title }>
{ item.Title }
</h3>
if item.Author != "" {
<p class="text-sm line-clamp-1" style="color: var(--text-secondary)">
<p class="text-sm line-clamp-1" style="color: var(--text-secondary)" title={ item.Author }>
{ item.Author }
</p>
}