koishi-plugin-node-async-bot-all 2.26.1 → 2.26.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/lib/index.js +2 -2
- package/package.json +1 -1
- package/res/userMsg.html +10 -16
package/lib/index.js
CHANGED
|
@@ -266,7 +266,7 @@ async function readUserMsgFile(userName, userAvatar, msg, inversion, replyUserNa
|
|
|
266
266
|
}
|
|
267
267
|
).replace('<at type="all"/>', "@全体成员");
|
|
268
268
|
if (inversion) html = html.replace("//// ", "");
|
|
269
|
-
if (replyUserName != void 0) html = html.replace("/**/
|
|
269
|
+
if (replyUserName != void 0) html = html.replace("/**/", "//// ");
|
|
270
270
|
} catch (error) {
|
|
271
271
|
html = error.message;
|
|
272
272
|
}
|
|
@@ -940,7 +940,7 @@ async function getUse(ctx, session, qq, desc) {
|
|
|
940
940
|
__name(getUse, "getUse");
|
|
941
941
|
|
|
942
942
|
// package.json
|
|
943
|
-
var version = "2.26.
|
|
943
|
+
var version = "2.26.2";
|
|
944
944
|
|
|
945
945
|
// src/index.ts
|
|
946
946
|
var inject = ["database", "installer", "puppeteer", "cron"];
|
package/package.json
CHANGED
package/res/userMsg.html
CHANGED
|
@@ -9,11 +9,10 @@
|
|
|
9
9
|
body {
|
|
10
10
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
11
11
|
background: transparent;
|
|
12
|
-
padding: 20px;
|
|
13
|
-
//// transform: rotate(180deg);
|
|
12
|
+
padding: 20px;
|
|
13
|
+
//// transform: rotate(180deg);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
/* 核心容器 */
|
|
17
16
|
.message-card {
|
|
18
17
|
display: flex;
|
|
19
18
|
flex-direction: row;
|
|
@@ -22,26 +21,24 @@
|
|
|
22
21
|
background: #ffffff;
|
|
23
22
|
padding: 15px;
|
|
24
23
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
25
|
-
border-radius: 8px;
|
|
24
|
+
border-radius: 8px;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
/* 头像样式 */
|
|
29
27
|
.avatar {
|
|
30
28
|
width: 50px;
|
|
31
29
|
height: 50px;
|
|
32
30
|
border-radius: 50%;
|
|
33
31
|
object-fit: cover;
|
|
34
|
-
flex-shrink: 0;
|
|
32
|
+
flex-shrink: 0;
|
|
35
33
|
margin-right: 15px;
|
|
36
34
|
border: 1px solid #eee;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
/* 消息气泡及内容容器 */
|
|
40
37
|
.content {
|
|
41
38
|
flex: 1;
|
|
42
39
|
display: flex;
|
|
43
40
|
flex-direction: column;
|
|
44
|
-
min-width: 0;
|
|
41
|
+
min-width: 0;
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
.user-name {
|
|
@@ -51,10 +48,9 @@
|
|
|
51
48
|
margin-bottom: 6px;
|
|
52
49
|
}
|
|
53
50
|
|
|
54
|
-
/* ================= 新增:回复块样式 ================= */
|
|
55
51
|
.reply-block {
|
|
56
52
|
background: #f7f8fa;
|
|
57
|
-
border-left: 3px solid #b9bbbe;
|
|
53
|
+
border-left: 3px solid #b9bbbe;
|
|
58
54
|
padding: 6px 10px;
|
|
59
55
|
border-radius: 0 4px 4px 0;
|
|
60
56
|
margin-bottom: 8px;
|
|
@@ -71,7 +67,6 @@
|
|
|
71
67
|
.reply-text {
|
|
72
68
|
font-size: 13px;
|
|
73
69
|
color: #777;
|
|
74
|
-
/* 长文本截断:最多显示2行 */
|
|
75
70
|
display: -webkit-box;
|
|
76
71
|
-webkit-line-clamp: 2;
|
|
77
72
|
-webkit-box-orient: vertical;
|
|
@@ -79,7 +74,6 @@
|
|
|
79
74
|
text-overflow: ellipsis;
|
|
80
75
|
word-break: break-all;
|
|
81
76
|
}
|
|
82
|
-
/* =================================================== */
|
|
83
77
|
|
|
84
78
|
.text-bubble {
|
|
85
79
|
font-size: 15px;
|
|
@@ -87,13 +81,13 @@
|
|
|
87
81
|
color: #444;
|
|
88
82
|
background: #f2f3f5;
|
|
89
83
|
padding: 10px 14px;
|
|
90
|
-
border-radius: 0 12px 12px 12px;
|
|
84
|
+
border-radius: 0 12px 12px 12px;
|
|
91
85
|
|
|
92
|
-
white-space: pre-wrap;
|
|
93
|
-
word-wrap: break-word;
|
|
86
|
+
white-space: pre-wrap;
|
|
87
|
+
word-wrap: break-word;
|
|
94
88
|
overflow-wrap: break-word;
|
|
95
89
|
word-break: break-all;
|
|
96
|
-
width: fit-content;
|
|
90
|
+
width: fit-content;
|
|
97
91
|
}
|
|
98
92
|
</style>
|
|
99
93
|
</head>
|