dsh-ui-alt 0.2.10 → 0.2.11
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/client.js +8 -15
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -6,7 +6,7 @@ window.__ModuleLoader__.load({
|
|
|
6
6
|
|
|
7
7
|
const STORAGE_KEY = 'dsh-ui-alt:prefs:v1';
|
|
8
8
|
/* 发版时与 package.json 的 version 一起改:设置页底部会显示这两个值 */
|
|
9
|
-
const VERSION = '0.2.
|
|
9
|
+
const VERSION = '0.2.11';
|
|
10
10
|
const UPDATED = '2026-11-09';
|
|
11
11
|
const DEFAULTS = {
|
|
12
12
|
radiusDensity: true,
|
|
@@ -184,15 +184,11 @@ html[data-dcc-new="off"] button[data-dcc-newrow] {
|
|
|
184
184
|
display: none !important;
|
|
185
185
|
}
|
|
186
186
|
/* 克隆行直接使用 panelRow 的类,宽度/内边距/行高/焦点环全部来自宿主;
|
|
187
|
-
|
|
187
|
+
默认和其它导航行一样是透明底,悬停时统一由下面的导航行规则上色 */
|
|
188
188
|
html[data-dcc-new="on"] button[data-dcc-newrow] {
|
|
189
|
-
background-color:
|
|
189
|
+
background-color: transparent !important;
|
|
190
190
|
color: var(--dsw-alias-label-primary) !important;
|
|
191
191
|
}
|
|
192
|
-
html[data-dcc-new="on"] button[data-dcc-newrow]:hover {
|
|
193
|
-
background-color: var(--dsw-alias-interactive-bg-hover) !important;
|
|
194
|
-
box-shadow: inset 0 0 0 999px rgba(127, 127, 127, .1) !important;
|
|
195
|
-
}
|
|
196
192
|
.dcc-newrow-content {
|
|
197
193
|
display: flex;
|
|
198
194
|
align-items: center;
|
|
@@ -433,22 +429,19 @@ html[data-dcc-dot="on"] body[data-ds-dark-theme] [class*="_sessionRow"]::before
|
|
|
433
429
|
body:not([data-ds-dark-theme]) nav[class*="_panelList"] [class*="_panelRow"]:hover {
|
|
434
430
|
box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .035) !important;
|
|
435
431
|
}
|
|
436
|
-
html[data-dcc-new="on"] body:not([data-ds-dark-theme]) button[data-dcc-newrow] {
|
|
437
|
-
background-color: color-mix(in srgb, var(--dsw-alias-interactive-bg-hover) 82%, rgba(0, 0, 0, .05)) !important;
|
|
438
|
-
}
|
|
439
432
|
/* 浅色主题下选中会话的背景再强一点 */
|
|
440
433
|
body:not([data-ds-dark-theme]) [class*="_sessionRow"][class*="_selected"] {
|
|
441
434
|
box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .04) !important;
|
|
442
435
|
}
|
|
443
436
|
|
|
444
|
-
/* 导航行的悬停 /
|
|
445
|
-
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"]:hover
|
|
446
|
-
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"]
|
|
437
|
+
/* 导航行的悬停 / 选中:新会话行已经是普通导航行的一员,不再单独排除 */
|
|
438
|
+
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"]:hover,
|
|
439
|
+
html[data-dcc-new="on"] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"] {
|
|
447
440
|
background-color: var(--dsw-alias-interactive-bg-hover) !important;
|
|
448
441
|
box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .07) !important;
|
|
449
442
|
}
|
|
450
|
-
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"]:hover
|
|
451
|
-
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"]
|
|
443
|
+
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"]:hover,
|
|
444
|
+
html[data-dcc-new="on"] body[data-ds-dark-theme] nav[class*="_panelList"] [class*="_panelRow"][class*="_panelActive"] {
|
|
452
445
|
background-color: var(--dsw-alias-interactive-bg-hover) !important;
|
|
453
446
|
box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .1) !important;
|
|
454
447
|
}
|