fix: 资源重复

This commit is contained in:
bietiaop 2024-07-12 23:23:08 +08:00
parent e988948770
commit 89c4ab29a7
12 changed files with 42 additions and 45 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

View file

@ -176,18 +176,9 @@
top: 0.2em;
right: 0.2em;
width: 1.5em;
aspect-ratio: 1;
background: url("./images/RANK_A.png") no-repeat center center;
background-size: contain;
color: white;
z-index: 2;
}
.card .list .item.rankS .rank {
background-image: url("./images/RANK_S.png");
}
.card .list .item.rankB .rank {
background-image: url("./images/RANK_B.png");
}
.card .list .item .image {
width: 100%;
aspect-ratio: 1.5;

View file

@ -41,7 +41,7 @@
<div class="list">
{{each item.list inv j}}
<div class="item rankS {{inv.isUp && 'up'}}">
<div class="rank rankS"></div>
<div class="rank rank-icon s"></div>
<div class="image">
<img src="{{inv.square_icon}}" alt="">
</div>
@ -54,4 +54,4 @@
{{/each}}
</div>
{{/block}}
{{/block}}

View file

@ -127,22 +127,9 @@
top: 0.2em;
right: 0.2em;
width: 1.5em;
aspect-ratio: 1;
background: url('./images/RANK_A.png') no-repeat center center;
background-size: contain;
color: white;
z-index: 2;
}
&.rankS {
.rank {
background-image: url('./images/RANK_S.png');
}
}
&.rankB {
.rank {
background-image: url('./images/RANK_B.png');
}
}
.image {
width: 100%;
aspect-ratio: 1.5;