1 parent 5039497 commit cc88490Copy full SHA for cc88490
1 file changed
vue/src/assets/blog.css
@@ -195,13 +195,15 @@ body {
195
196
.article-cover {
197
background: var(--placeholder-tint);
198
- height: 130px;
+ aspect-ratio: 16 / 9;
199
width: 100%;
200
+ overflow: hidden;
201
+ border-radius: 8px;
202
}
203
204
@media (min-width: 561px) {
205
- height: 100%;
206
207
208
209
@@ -1464,14 +1466,14 @@ body {
1464
1466
border-radius: 10px;
1465
1467
overflow: hidden;
1468
1469
1470
1471
1472
.article-reader-cover img {
1473
1474
+ height: 100%;
1475
display: block;
- vertical-align: middle;
1476
object-fit: cover;
- max-height: min(52vh, 440px);
1477
1478
1479
.article-markdown--body {
0 commit comments