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 {
|
.tooltip-cover-image {
|
||||||
width: 40rem;
|
width: 40rem;
|
||||||
height: auto;
|
aspect-ratio: 5 / 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip-cover-title {
|
.tooltip-cover-title {
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
.book-cover {
|
.book-cover {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
aspect-ratio: 5 / 7;
|
||||||
|
object-fit: cover;
|
||||||
display: block;
|
display: block;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ export type CoverPlaceholderSize = 'sm' | 'md' | 'lg';
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
border-radius: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder.size-sm { padding: 0.5rem; }
|
.placeholder.size-sm { padding: 0.5rem; }
|
||||||
|
|||||||
Reference in New Issue
Block a user