@iasiv5/dsh-quota-watch 0.1.5 → 0.1.6
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 +7 -0
- package/package.json +1 -1
- package/src/client.mjs +11 -3
package/lib/client.js
CHANGED
|
@@ -968,6 +968,13 @@ function mountQuotaCard({
|
|
|
968
968
|
else delete container.dataset.dshQuotaWatchSidebarCollapsed;
|
|
969
969
|
card.style.display = showCard ? "" : "none";
|
|
970
970
|
railTrigger.style.display = showRail ? "inline-flex" : "none";
|
|
971
|
+
if (showRail) {
|
|
972
|
+
container.style.height = SURFACE_SIZE + "px";
|
|
973
|
+
container.style.flex = "0 0 auto";
|
|
974
|
+
} else {
|
|
975
|
+
container.style.height = "";
|
|
976
|
+
container.style.flex = "";
|
|
977
|
+
}
|
|
971
978
|
};
|
|
972
979
|
const footResizeObserver = typeof win.ResizeObserver === "function" ? new win.ResizeObserver(() => {
|
|
973
980
|
syncCardVisibility();
|
package/package.json
CHANGED
package/src/client.mjs
CHANGED
|
@@ -922,11 +922,19 @@ 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
|
|
926
|
-
//
|
|
927
|
-
//
|
|
925
|
+
// The card ↔ rail swap is driven by INLINE styles (know-how 017's lesson),
|
|
926
|
+
// AND the collapsed rail gets an explicit 38px box: CDP layout-chain dump
|
|
927
|
+
// showed the 0.2.0 framework flex-collapsing unknown foot children to 0px
|
|
928
|
+
// height, so the gauge must opt out of the flex squeeze to be visible.
|
|
928
929
|
card.style.display = showCard ? '' : 'none'
|
|
929
930
|
railTrigger.style.display = showRail ? 'inline-flex' : 'none'
|
|
931
|
+
if (showRail) {
|
|
932
|
+
container.style.height = SURFACE_SIZE + 'px'
|
|
933
|
+
container.style.flex = '0 0 auto'
|
|
934
|
+
} else {
|
|
935
|
+
container.style.height = ''
|
|
936
|
+
container.style.flex = ''
|
|
937
|
+
}
|
|
930
938
|
}
|
|
931
939
|
const footResizeObserver = typeof win.ResizeObserver === 'function'
|
|
932
940
|
? new win.ResizeObserver(() => { syncCardVisibility() })
|