@iasiv5/dsh-quota-watch 0.1.7 → 0.1.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 +1 -1
- package/package.json +1 -1
- package/src/client.mjs +6 -1
package/lib/client.js
CHANGED
|
@@ -485,7 +485,7 @@ function mountQuotaCard({
|
|
|
485
485
|
surface.hidden = dataHidden;
|
|
486
486
|
floatHost.hidden = dataHidden;
|
|
487
487
|
};
|
|
488
|
-
doc.
|
|
488
|
+
doc.body.append(floatHost);
|
|
489
489
|
const applyFloatGeometry = () => {
|
|
490
490
|
const viewWidth = win.innerWidth ?? 1024;
|
|
491
491
|
const viewHeight = win.innerHeight ?? 768;
|
package/package.json
CHANGED
package/src/client.mjs
CHANGED
|
@@ -422,7 +422,12 @@ export function mountQuotaCard({
|
|
|
422
422
|
surface.hidden = dataHidden
|
|
423
423
|
floatHost.hidden = dataHidden
|
|
424
424
|
}
|
|
425
|
-
|
|
425
|
+
// Mount under <body>, NOT <html>: the DSH theme tokens (--dsw-alias-*) are
|
|
426
|
+
// defined on <body>, and a sibling of <body> never inherits them — mounting
|
|
427
|
+
// on documentElement silently stranded the float shell on hardcoded dark
|
|
428
|
+
// fallbacks (broke the light theme). <body> is also transform-free, so
|
|
429
|
+
// position:fixed stays viewport-anchored.
|
|
430
|
+
doc.body.append(floatHost)
|
|
426
431
|
const applyFloatGeometry = () => {
|
|
427
432
|
const viewWidth = win.innerWidth ?? 1024
|
|
428
433
|
const viewHeight = win.innerHeight ?? 768
|