@iasiv5/dsh-quota-watch 0.1.4 → 0.1.5

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
@@ -966,6 +966,8 @@ function mountQuotaCard({
966
966
  container.hidden = !showCard && !showRail;
967
967
  if (showRail) container.dataset.dshQuotaWatchSidebarCollapsed = "";
968
968
  else delete container.dataset.dshQuotaWatchSidebarCollapsed;
969
+ card.style.display = showCard ? "" : "none";
970
+ railTrigger.style.display = showRail ? "inline-flex" : "none";
969
971
  };
970
972
  const footResizeObserver = typeof win.ResizeObserver === "function" ? new win.ResizeObserver(() => {
971
973
  syncCardVisibility();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iasiv5/dsh-quota-watch",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
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
@@ -922,6 +922,11 @@ export function mountQuotaCard({
922
922
  container.hidden = !showCard && !showRail
923
923
  if (showRail) container.dataset.dshQuotaWatchSidebarCollapsed = ''
924
924
  else delete container.dataset.dshQuotaWatchSidebarCollapsed
925
+ // The card ↔ rail swap is driven by INLINE styles: know-how 017's lesson —
926
+ // critical visibility state must not depend on stylesheet rules that
927
+ // external actors (aggressive extensions) may neuter in the user's browser.
928
+ card.style.display = showCard ? '' : 'none'
929
+ railTrigger.style.display = showRail ? 'inline-flex' : 'none'
925
930
  }
926
931
  const footResizeObserver = typeof win.ResizeObserver === 'function'
927
932
  ? new win.ResizeObserver(() => { syncCardVisibility() })