feat(ui): add series number overlay for More in Series (#2208)

Co-authored-by: ACX <8075870+acx10@users.noreply.github.com>
This commit is contained in:
xcashy
2026-01-08 19:25:18 -07:00
committed by GitHub
co-authored by ACX
parent 15007143f9
commit 34ac70c251
4 changed files with 20 additions and 1 deletions
@@ -4,6 +4,12 @@
class="book-cover"
alt="Cover of {{ book.metadata?.title }}"
loading="lazy"/>
@if (showSeriesNumber && !book.seriesCount && book.metadata?.seriesNumber != null) {
<div class="series-number-overlay">
#{{ book.metadata?.seriesNumber }}
</div>
}
@if (!this.isActive) {
<p-button
@@ -25,4 +25,16 @@
pointer-events: auto;
}
}
.series-number-overlay {
position: absolute;
top: 4px;
left: 4px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
font-size: 0.75rem;
padding: 1px 3px;
border-radius: 3px;
z-index: 3;
}
}
@@ -23,6 +23,7 @@ import {TooltipModule} from 'primeng/tooltip';
export class BookCardLiteComponent implements OnInit, OnDestroy {
@Input() book!: Book;
@Input() isActive: boolean = false;
@Input() showSeriesNumber: boolean = false;
private router = inject(Router);
protected urlHelper = inject(UrlHelperService);