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:
+1
-1
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user