固定模型缩略图比例

This commit is contained in:
zhangshun
2026-06-01 16:56:35 +08:00
parent 33f1163aa7
commit c1d5240d2c
2 changed files with 30 additions and 10 deletions

View File

@@ -131,7 +131,8 @@
.thumb {
position: relative;
min-height: 150px;
aspect-ratio: 4 / 3;
min-height: 0;
display: grid;
place-items: center;
/* background:
@@ -179,6 +180,7 @@
}
.thumb img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;