fix collection page grid: use correct 280x160 aspect ratio for character images
This commit is contained in:
parent
a6a0a38d75
commit
9ed505623e
1 changed files with 5 additions and 5 deletions
|
|
@ -288,7 +288,6 @@
|
||||||
@use '$src/themes/spacing' as *;
|
@use '$src/themes/spacing' as *;
|
||||||
@use '$src/themes/colors' as *;
|
@use '$src/themes/colors' as *;
|
||||||
@use '$src/themes/typography' as *;
|
@use '$src/themes/typography' as *;
|
||||||
@use '$src/themes/rep' as rep;
|
|
||||||
|
|
||||||
.collection-page {
|
.collection-page {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -309,8 +308,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.character-grid {
|
.character-grid {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
|
flex-wrap: wrap;
|
||||||
gap: $unit;
|
gap: $unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -338,8 +337,9 @@
|
||||||
|
|
||||||
.card-image {
|
.card-image {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
// Character grid images are 280x160 (7:4 ratio)
|
||||||
@include rep.aspect(rep.$char-cell-w, rep.$char-cell-h);
|
width: 100px;
|
||||||
|
aspect-ratio: 280 / 160;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: var(--card-bg, #f5f5f5);
|
background: var(--card-bg, #f5f5f5);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue