fix character card aspect ratio to match actual image dimensions
Character grid images are 280x160 (7:4 ratio, wider than tall). The previous ratio was inverted. Now using 100px width with correct aspect-ratio: 280/160.
This commit is contained in:
parent
408f729976
commit
a664d41e63
1 changed files with 3 additions and 3 deletions
|
|
@ -53,12 +53,12 @@
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@use '$src/themes/spacing' as *;
|
@use '$src/themes/spacing' as *;
|
||||||
@use '$src/themes/effects' as *;
|
@use '$src/themes/effects' as *;
|
||||||
@use '$src/themes/rep' as rep;
|
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 70px;
|
width: 100px;
|
||||||
@include rep.aspect(rep.$char-cell-w, rep.$char-cell-h);
|
// Character grid images are 280x160 (7:4 ratio)
|
||||||
|
aspect-ratio: 280 / 160;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue