dsh-ui-alt 0.2.445 → 0.2.446
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 +12 -4
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -6,8 +6,8 @@ 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.
|
|
10
|
-
const UPDATED = '2026-11-
|
|
9
|
+
const VERSION = '0.2.446';
|
|
10
|
+
const UPDATED = '2026-11-23';
|
|
11
11
|
const DEFAULTS = {
|
|
12
12
|
radiusDensity: true,
|
|
13
13
|
invertNewSession: true,
|
|
@@ -209,8 +209,12 @@ body[data-ds-dark-theme] .dcc-boot-cover {
|
|
|
209
209
|
border-radius: var(--dsw-radius-lg, 12px);
|
|
210
210
|
background: var(--dsw-alias-bg-layer-1);
|
|
211
211
|
box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
|
|
212
|
+
/* 入场动画跟「为菜单和窗口添加动画」开关走:关掉时直接出现 */
|
|
212
213
|
animation: dcc-plain-in .13s var(--ds-ease-in-out, cubic-bezier(.4, 0, .2, 1)) !important;
|
|
213
214
|
}
|
|
215
|
+
html[data-dcc-transition="off"] .dcc-modal-card {
|
|
216
|
+
animation: none !important;
|
|
217
|
+
}
|
|
214
218
|
.dcc-modal-content {
|
|
215
219
|
padding: 18px 20px 4px;
|
|
216
220
|
}
|
|
@@ -1951,8 +1955,12 @@ html[data-dcc-logo="hidden"] [class*="_logoRow"] {
|
|
|
1951
1955
|
menu.appendChild(entry);
|
|
1952
1956
|
});
|
|
1953
1957
|
document.body.appendChild(menu);
|
|
1954
|
-
|
|
1955
|
-
|
|
1958
|
+
/* 视图菜单属于「菜单」,跟「为菜单和窗口添加动画」这个开关走:
|
|
1959
|
+
关掉时直接出现,不再缩放淡入。 */
|
|
1960
|
+
if (document.documentElement.dataset.dccTransition === 'on') {
|
|
1961
|
+
menu.style.transformOrigin = 'top right';
|
|
1962
|
+
menu.style.animation = 'dcc-plain-in .13s var(--ds-ease-in-out, cubic-bezier(.4, 0, .2, 1))';
|
|
1963
|
+
}
|
|
1956
1964
|
segMenu = menu;
|
|
1957
1965
|
segMenuAnchor = more;
|
|
1958
1966
|
more.setAttribute('data-open', 'true');
|