chore(ui): enforce placeholder aspect ratios (#320)

* chore(ui): enforce placeholder aspect ratios

* chore(ui): add proper cover crop behavior
This commit is contained in:
Alex
2026-04-22 17:26:59 -04:00
committed by Zach Yale
parent 02b2087c17
commit f376b68873
3 changed files with 4 additions and 1 deletions
@@ -60,7 +60,7 @@
.tooltip-cover-image {
width: 40rem;
height: auto;
aspect-ratio: 5 / 7;
}
.tooltip-cover-title {
@@ -6,6 +6,8 @@
.book-cover {
width: 100%;
aspect-ratio: 5 / 7;
object-fit: cover;
display: block;
border-radius: 0.5rem;
}
@@ -51,6 +51,7 @@ export type CoverPlaceholderSize = 'sm' | 'md' | 'lg';
align-items: center;
justify-content: center;
text-align: center;
border-radius: inherit;
}
.placeholder.size-sm { padding: 0.5rem; }