@sjtdev/koishi-plugin-dota2tracker 1.5.4 → 1.5.5
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="relative <%= style %>"<%- isRecipe %>>
|
|
3
3
|
<% if (item) { %>
|
|
4
4
|
<% if (!isNeutral) { %>
|
|
5
|
-
<img class="w-full h-full object-cover <%= item.isRecipe ? "opacity-75 scale-[0.6] origin-top-right" : '' %>" src="<%= utils.getImageUrl(item.name, ImageType.Items) %>">
|
|
5
|
+
<img class="w-full h-full object-cover aspect-[11/8] <%= item.isRecipe ? "opacity-75 scale-[0.6] origin-top-right" : '' %>" src="<%= utils.getImageUrl(item.name, ImageType.Items) %>">
|
|
6
6
|
<p class="absolute w-full text-[#ccc] text-center bottom-0 leading-[1] text-xs bg-stone-700/50"><%= utils.sec2time(item.time) %></p>
|
|
7
7
|
<% } else { %>
|
|
8
8
|
<img class="w-full h-full object-contain" src="<%= utils.getImageUrl(dotaconstants.item_ids[player.neutral0Id], ImageType.Items) %>">
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
<% } %>
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
|
-
<div class="facet row-2 col-1 w-full h-full
|
|
49
|
+
<div class="facet row-2 col-1 w-full h-full grid grid-cols-[24px_1fr] grid-rows-1 bg-linear-to-r
|
|
50
50
|
<%- facetColor[player.facet?.color ?? 'Black'] %>">
|
|
51
51
|
<% if (player.facet) { %>
|
|
52
52
|
<div class="w-[24px] h-[24px] flex items-center justify-center bg-[#4444]">
|
|
53
53
|
<img class="h-[18px]" src="<%= utils.getImageUrl(player.facet?.icon, ImageType.IconsFacets) %>" />
|
|
54
54
|
</div>
|
|
55
55
|
<% } %>
|
|
56
|
-
<div class="facet_name grow text-sm flex justify-center items-center"><%= player.facet?.name ?? "?" %></div>
|
|
56
|
+
<div class="facet_name w-full truncate grow px-[4px] text-sm flex justify-center items-center"><span class="w-full truncate text-center"><%= player.facet?.name ?? "?" %></span></div>
|
|
57
57
|
</div>
|
|
58
58
|
<div class="titles row-2 col-start-2 col-end-3 w-full flex items-center pl-[12px] gap-[6px]">
|
|
59
59
|
<% for (let item of player.titles) { %>
|
|
@@ -263,6 +263,9 @@
|
|
|
263
263
|
.grid {
|
|
264
264
|
display: grid;
|
|
265
265
|
}
|
|
266
|
+
.aspect-\[11\/8\] {
|
|
267
|
+
aspect-ratio: 11/8;
|
|
268
|
+
}
|
|
266
269
|
.size-\[36px\] {
|
|
267
270
|
width: 36px;
|
|
268
271
|
height: 36px;
|
|
@@ -343,6 +346,9 @@
|
|
|
343
346
|
.grid-cols-2 {
|
|
344
347
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
345
348
|
}
|
|
349
|
+
.grid-cols-\[24px_1fr\] {
|
|
350
|
+
grid-template-columns: 24px 1fr;
|
|
351
|
+
}
|
|
346
352
|
.grid-cols-\[112px_1fr_100px\] {
|
|
347
353
|
grid-template-columns: 112px 1fr 100px;
|
|
348
354
|
}
|
|
@@ -352,6 +358,9 @@
|
|
|
352
358
|
.grid-cols-\[repeat\(6\,3fr\)_10fr\] {
|
|
353
359
|
grid-template-columns: repeat(6,3fr) 10fr;
|
|
354
360
|
}
|
|
361
|
+
.grid-rows-1 {
|
|
362
|
+
grid-template-rows: repeat(1, minmax(0, 1fr));
|
|
363
|
+
}
|
|
355
364
|
.grid-rows-2 {
|
|
356
365
|
grid-template-rows: repeat(2, minmax(0, 1fr));
|
|
357
366
|
}
|
|
@@ -508,6 +517,9 @@
|
|
|
508
517
|
.px-\[2px\] {
|
|
509
518
|
padding-inline: 2px;
|
|
510
519
|
}
|
|
520
|
+
.px-\[4px\] {
|
|
521
|
+
padding-inline: 4px;
|
|
522
|
+
}
|
|
511
523
|
.pl-\[12px\] {
|
|
512
524
|
padding-left: 12px;
|
|
513
525
|
}
|