@linxin666/dsh-client-ui-skin-center 0.4.7 → 0.4.8
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/client.js +35 -1
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -497,6 +497,40 @@ window.__ModuleLoader__.load({
|
|
|
497
497
|
const scopes = ACTIVE_VISUAL_SELECTOR.split(", ");
|
|
498
498
|
const scoped = (selector) => scopes.map((scope) => `${scope} ${selector}`).join(",\n");
|
|
499
499
|
return `
|
|
500
|
+
/* macOS window-drag guard. The official base stylesheet turns every DIRECT
|
|
501
|
+
body child into a "-webkit-app-region: no-drag" region (its selector
|
|
502
|
+
spares only the app's own root element), so a body-level element that
|
|
503
|
+
spans the viewport subtracts the whole window from the macOS draggable
|
|
504
|
+
region and cancels the official [data-window-drag] chrome rows with it:
|
|
505
|
+
the window can no longer be dragged by its title area, and macOS no
|
|
506
|
+
longer runs the system double-click action (zoom to fit the screen)
|
|
507
|
+
there. "pointer-events: none" does not exempt an element from that
|
|
508
|
+
computation - only a declaration of its own does.
|
|
509
|
+
|
|
510
|
+
Every element in the list is a shell this runtime mounts as a body
|
|
511
|
+
child and declares non-interactive, so the guard has to be inline here
|
|
512
|
+
rather than imported from the aggregate patch layer (#1907): a
|
|
513
|
+
standalone install of the skin center never loads that layer, and the
|
|
514
|
+
decoration layers below are mounted for the stock look too, which is
|
|
515
|
+
why this rule is NOT scoped under the active-visual heads above.
|
|
516
|
+
|
|
517
|
+
- [data-dsh-skin-layer]: the six fixed decoration layers
|
|
518
|
+
(runtime/decoration-layers.ts);
|
|
519
|
+
- [data-dsh-composer-frost]: the composer frost follower
|
|
520
|
+
(runtime/backdrop-scene.ts);
|
|
521
|
+
- [aria-hidden="true"]: the skin backdrop-filter veil, which carries no
|
|
522
|
+
data hook of its own (client/background.ts).
|
|
523
|
+
|
|
524
|
+
"initial" is the initial value ("none"), which leaves the element and
|
|
525
|
+
its whole subtree out of the app-region computation; the declaration
|
|
526
|
+
must be !important because the official selector outranks this one. */
|
|
527
|
+
html[data-platform="darwin"] body > :is(
|
|
528
|
+
[data-dsh-skin-layer],
|
|
529
|
+
[data-dsh-composer-frost],
|
|
530
|
+
[aria-hidden="true"]
|
|
531
|
+
) {
|
|
532
|
+
-webkit-app-region: initial !important;
|
|
533
|
+
}
|
|
500
534
|
/* Viewport lock: prevent outer page scrollbar and viewport
|
|
501
535
|
displacement during element focus/scrollIntoView. */
|
|
502
536
|
${ACTIVE_VISUAL_SELECTOR},
|
|
@@ -5545,7 +5579,7 @@ window.__ModuleLoader__.load({
|
|
|
5545
5579
|
/** The building package's version, when the bundle carries it. */
|
|
5546
5580
|
function bakedVersion() {
|
|
5547
5581
|
try {
|
|
5548
|
-
return "0.4.
|
|
5582
|
+
return "0.4.8";
|
|
5549
5583
|
} catch {
|
|
5550
5584
|
return;
|
|
5551
5585
|
}
|