@sjtdev/koishi-plugin-dota2tracker 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +8 -0
- package/package.json +1 -1
- package/template/match/match_1.ejs +28 -9
- package/template/match/match_2.ejs +0 -2
package/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -146,7 +146,6 @@
|
|
|
146
146
|
height: 63px;
|
|
147
147
|
position: relative;
|
|
148
148
|
border-radius: 4px;
|
|
149
|
-
overflow: hidden;
|
|
150
149
|
flex-grow: 0;
|
|
151
150
|
}
|
|
152
151
|
|
|
@@ -267,9 +266,8 @@
|
|
|
267
266
|
}
|
|
268
267
|
|
|
269
268
|
.hero .player_avatar .level {
|
|
270
|
-
|
|
269
|
+
right: 2px;
|
|
271
270
|
bottom: 1px;
|
|
272
|
-
right: auto;
|
|
273
271
|
font-size: 12px;
|
|
274
272
|
color: rgba(255, 255, 255, 1);
|
|
275
273
|
/* color: #cccccc; */
|
|
@@ -277,19 +275,38 @@
|
|
|
277
275
|
}
|
|
278
276
|
|
|
279
277
|
.hero .player_avatar .facet {
|
|
280
|
-
width:
|
|
278
|
+
width: 112px;
|
|
281
279
|
height: 24px;
|
|
282
280
|
position: absolute;
|
|
283
|
-
|
|
284
|
-
bottom:
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
justify-content: center;
|
|
281
|
+
left: 0;
|
|
282
|
+
bottom: -24px;
|
|
283
|
+
display: grid;
|
|
284
|
+
grid-template-columns: 24px auto;
|
|
288
285
|
align-items: center;
|
|
289
286
|
}
|
|
290
287
|
.hero .player_avatar .facet img{
|
|
288
|
+
padding: 3px;
|
|
291
289
|
width: 18px;
|
|
292
290
|
height: 18px;
|
|
291
|
+
background-color: #4444;
|
|
292
|
+
}
|
|
293
|
+
.hero .player_avatar .facet span{
|
|
294
|
+
display: grid;
|
|
295
|
+
place-items: center;
|
|
296
|
+
align-items: center;
|
|
297
|
+
justify-content: center;
|
|
298
|
+
height: 100%;
|
|
299
|
+
width: 88px;
|
|
300
|
+
position: relative;
|
|
301
|
+
}
|
|
302
|
+
.hero .player_avatar .facet span > * {
|
|
303
|
+
box-sizing: border-box;
|
|
304
|
+
padding: 0 4px;
|
|
305
|
+
max-width: 100%;
|
|
306
|
+
overflow: hidden;
|
|
307
|
+
text-overflow: ellipsis;
|
|
308
|
+
white-space: nowrap;
|
|
309
|
+
font-size: 14px;
|
|
293
310
|
}
|
|
294
311
|
.hero > .player_avatar > .facet.Red {
|
|
295
312
|
background: linear-gradient(to right, #9f3c3c, #4a2026);
|
|
@@ -454,6 +471,7 @@
|
|
|
454
471
|
margin-bottom: 4px;
|
|
455
472
|
padding-left: 4px;
|
|
456
473
|
height: 24px;
|
|
474
|
+
margin-left: 120px;
|
|
457
475
|
/* text-shadow: -1px -1px 2px #aaa, 1px -1px 2px #aaa, -1px 1px 2px #aaa, 1px 1px 2px #aaa; */ /*描边效果 */
|
|
458
476
|
}
|
|
459
477
|
|
|
@@ -764,6 +782,7 @@
|
|
|
764
782
|
${player.facet ? `
|
|
765
783
|
<div class="facet ${player.facet.color}">
|
|
766
784
|
<img src="${utils.getImageUrl(player.facet.icon, ImageType.IconsFacets)}">
|
|
785
|
+
<span><p style="font-size: ${player.facet.name.length > 7 ? 10 : player.facet.name.length > 5 ? 12 : 14}px;">${player.facet.name}</p></span>
|
|
767
786
|
</div>` : ""}
|
|
768
787
|
</div>
|
|
769
788
|
<div class="player_info">
|
|
@@ -250,7 +250,6 @@
|
|
|
250
250
|
background-color: #4444;
|
|
251
251
|
}
|
|
252
252
|
.player > .facet > span {
|
|
253
|
-
display: block;
|
|
254
253
|
padding: 0 2px;
|
|
255
254
|
line-height: 1;
|
|
256
255
|
display: grid;
|
|
@@ -540,7 +539,6 @@
|
|
|
540
539
|
<div class="player ${player.team}${player.hero.id==80?" bear":""}" style="order: ${player.team==="radiant"?1:100};">
|
|
541
540
|
<div class="hero_avatar row-1${player.partyId != null ? " party_" + match.party[player.partyId] : ""}">
|
|
542
541
|
<img src="${utils.getImageUrl(player.hero.shortName, ImageType.Heroes)}" />
|
|
543
|
-
|
|
544
542
|
<p class="level">${player.level}</p>
|
|
545
543
|
<p class="party_line"></p>
|
|
546
544
|
<p class="party_mark"></p>
|