refactor(ui): replace SVG artwork placeholders with CSS (#292)

* chore(ui): replace SVG placeholders with CSS alternative

* fix(ui): Placeholder review followup
This commit is contained in:
Alex
2026-04-22 17:26:58 -04:00
committed by Zach Yale
parent 5ac7b5553e
commit 2fd7310e81
34 changed files with 392 additions and 511 deletions
@@ -1,9 +1,13 @@
<div class="book-cover-wrapper" [class.audiobook-only]="isAudiobookOnly()" (mouseenter)="isHovered = true" (mouseleave)="isHovered = false">
<img
[src]="getThumbnailUrl()"
class="book-cover"
alt="Cover of {{ book.metadata?.title }}"
loading="lazy"/>
@if (getThumbnailUrl(); as coverUrl) {
<img
[src]="coverUrl"
class="book-cover"
alt="Cover of {{ book.metadata?.title }}"
loading="lazy"/>
} @else {
<app-cover-placeholder class="book-cover" [title]="book.metadata?.title ?? ''" [author]="(book.metadata?.authors ?? []).join(', ')" size="sm" />
}
@if (showSeriesNumber && !book.seriesCount && book.metadata?.seriesNumber !== null && book.metadata?.seriesNumber !== undefined) {
<div class="series-number-overlay">