qq-bot-roost 1.0.2 → 1.0.3
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/README.md +1 -1
- package/package.json +1 -1
- package/web/index.html +1 -1
- package/web/style.css +17 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<img src="https://img.shields.io/badge/dependencies-0-brightgreen" alt="零依赖">
|
|
11
11
|
<img src="https://img.shields.io/badge/tests-771%20passed-brightgreen" alt="测试 771 项">
|
|
12
12
|
<img src="https://img.shields.io/badge/plugins-JS%20%7C%20Python%20%7C%20Go%20%7C%20any-blue" alt="多语言插件">
|
|
13
|
-
<img src="https://img.shields.io/badge/version-1.0.
|
|
13
|
+
<img src="https://img.shields.io/badge/version-1.0.3-blueviolet" alt="版本 1.0.3">
|
|
14
14
|
<img src="https://img.shields.io/badge/license-Non--Commercial-red" alt="禁止商用">
|
|
15
15
|
<a href="https://github.com/tdcq9594/qq-bot-roost/actions"><img src="https://img.shields.io/github/actions/workflow/status/tdcq9594/qq-bot-roost/ci.yml?branch=master" alt="CI"></a>
|
|
16
16
|
|
package/package.json
CHANGED
package/web/index.html
CHANGED
|
@@ -1103,8 +1103,8 @@
|
|
|
1103
1103
|
<div id="ppDash" class="pp-body" hidden></div>
|
|
1104
1104
|
<div id="ppGroups" class="pp-body" hidden></div>
|
|
1105
1105
|
<div class="modal-actions">
|
|
1106
|
+
<button class="btn danger act-left" id="ppReset" title="把所有配置项恢复成插件声明的默认值">恢复默认</button>
|
|
1106
1107
|
<button class="btn" id="ppClose">关闭</button>
|
|
1107
|
-
<button class="btn danger" id="ppReset" title="把所有配置项恢复成插件声明的默认值">恢复默认</button>
|
|
1108
1108
|
<button class="btn primary" id="ppSave">保存配置</button>
|
|
1109
1109
|
</div>
|
|
1110
1110
|
</div>
|
package/web/style.css
CHANGED
|
@@ -259,6 +259,15 @@ body {
|
|
|
259
259
|
animation: modal-fade .12s ease-out;
|
|
260
260
|
}
|
|
261
261
|
.modal-mask[hidden] { display: none; }
|
|
262
|
+
/*
|
|
263
|
+
* 通用确认弹窗(#modalMask)永远压在最上面。
|
|
264
|
+
*
|
|
265
|
+
* 四个 .modal-mask 都是 z-index:100,同层级时「DOM 里靠后的盖住靠前的」,
|
|
266
|
+
* 而 #modalMask 写在 index.html 最前面、插件设置面板在后面 ——
|
|
267
|
+
* 于是「保存配置」弹的「已保存」整个被插件设置面板挡住,看起来像点了没反应。
|
|
268
|
+
* 确认弹窗本身是「盖在别的弹窗上回答一个问题」的层,层级必须高人一等。
|
|
269
|
+
*/
|
|
270
|
+
#modalMask { z-index: 200; }
|
|
262
271
|
.modal {
|
|
263
272
|
width: min(420px, calc(100vw - 32px));
|
|
264
273
|
background: var(--panel);
|
|
@@ -279,6 +288,14 @@ body {
|
|
|
279
288
|
.modal-actions {
|
|
280
289
|
display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px;
|
|
281
290
|
}
|
|
291
|
+
/*
|
|
292
|
+
* 破坏性操作推到最左,右边只留「关闭 / 保存配置」。
|
|
293
|
+
*
|
|
294
|
+
* 原先三个按钮挤成一排右对齐,灰色的「关闭」在最左边、离蓝色的「保存配置」
|
|
295
|
+
* 隔着一个红色的「恢复默认」,用户看完配置直接就去点主按钮,找不到退出的地方。
|
|
296
|
+
* 把「恢复默认」单独甩到左边后,两个正常出口挨在一起,也顺手拉开了误点的距离。
|
|
297
|
+
*/
|
|
298
|
+
.modal-actions > .act-left { margin-right: auto; }
|
|
282
299
|
@keyframes modal-fade { from { opacity: 0 } to { opacity: 1 } }
|
|
283
300
|
@keyframes modal-pop { from { opacity: 0; transform: translateY(6px) scale(.98) } to { opacity: 1; transform: none } }
|
|
284
301
|
|