@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 CHANGED
@@ -485,7 +485,7 @@ function mountQuotaCard({
485
485
  surface.hidden = dataHidden;
486
486
  floatHost.hidden = dataHidden;
487
487
  };
488
- doc.documentElement.append(floatHost);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iasiv5/dsh-quota-watch",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "DSH Web sidebar monitor for GLM Coding Plan quotas and GitHub Copilot credits",
5
5
  "type": "module",
6
6
  "main": "./src/host.mjs",
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
- doc.documentElement.append(floatHost)
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