@sjtdev/koishi-plugin-dota2tracker 1.2.10-pre → 1.2.10-pre.2

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 CHANGED
@@ -1,3 +1,8 @@
1
+ ### 1.2.10-pre.2
2
+ **改进**:
3
+ - 调整了总结模板和玩家信息模板中胜负字体颜色样式,使其看起来更清晰。
4
+ - 优化了总结模板中胜负数和胜率的样式。
5
+
1
6
  ### 1.2.10-pre
2
7
  **修复**:
3
8
  - 修复战报图中若玩家名有html标签会导致图片排版错乱的问题。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sjtdev/koishi-plugin-dota2tracker",
3
3
  "description": "koishi插件-追踪群友的DOTA2对局",
4
- "version": "1.2.10-pre",
4
+ "version": "1.2.10-pre.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -78,10 +78,10 @@
78
78
  }
79
79
 
80
80
  .player .info .matches span.win {
81
- color: #006400;
81
+ color: #007A00;
82
82
  }
83
83
  .player .info .matches span.lose {
84
- color: #8b0000;
84
+ color: #B30000;
85
85
  }
86
86
 
87
87
  .player .info .matches span.victory {
@@ -25,8 +25,6 @@
25
25
  span {
26
26
  min-width: 0;
27
27
  white-space: nowrap; /* 不换行 */
28
- overflow: hidden; /* 超出部分隐藏 */
29
- text-overflow: ellipsis; /* 省略号 */
30
28
  }
31
29
 
32
30
  .title {
@@ -57,8 +55,21 @@
57
55
  display: block;
58
56
  width: 100%;
59
57
  text-align: center;
58
+ overflow: hidden; /* 超出部分隐藏 */
59
+ text-overflow: ellipsis; /* 省略号 */
60
+ }
61
+ .player > .count {
62
+ display: grid;
63
+ grid-template-columns: 1fr 1fr 1.8fr;
64
+ width: 100%;
60
65
  }
61
66
 
67
+ .player > .count > span {
68
+ text-align: left;
69
+ }
70
+ .player > .count > span:last-child {
71
+ text-align: right;
72
+ }
62
73
  .player > .performance {
63
74
  display: flex;
64
75
  align-items: center;
@@ -82,7 +93,7 @@
82
93
  justify-content: flex-end;
83
94
  }
84
95
  .player > .performance > .score_bar.neg > .left {
85
- background: linear-gradient(to right, #777, #888, #999, #888, #777);
96
+ background: linear-gradient(to right, #777, #888, #888, #777);
86
97
  }
87
98
  .player > .performance > .score_bar.pos > .right {
88
99
  background: linear-gradient(to right, #6cf, #7df, #6cf);
@@ -117,10 +128,10 @@
117
128
  margin-left: 4px;
118
129
  }
119
130
  span.win {
120
- color: #006400;
131
+ color: #007A00;
121
132
  }
122
133
  span.lose {
123
- color: #8b0000;
134
+ color: #B30000;
124
135
  }
125
136
  </style>
126
137
  </head>