fix: keep metric catalog above table header

This commit is contained in:
wxs
2026-07-16 21:33:00 +08:00
parent 70c1de3a7e
commit c45dca8a13
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1241,7 +1241,7 @@ function applyMetricCatalogPanelStyles(panel: HTMLElement): void {
panel.style.position = "absolute"; panel.style.position = "absolute";
panel.style.top = "calc(100% + 6px)"; panel.style.top = "calc(100% + 6px)";
panel.style.left = "0"; panel.style.left = "0";
panel.style.zIndex = "4"; panel.style.zIndex = "100";
panel.style.width = "260px"; panel.style.width = "260px";
panel.style.padding = "10px"; panel.style.padding = "10px";
panel.style.border = "1px solid #cbd5e1"; panel.style.border = "1px solid #cbd5e1";
+1
View File
@@ -1550,6 +1550,7 @@ describe("market-content-entry", () => {
) as HTMLInputElement | null; ) as HTMLInputElement | null;
expect(catalogPanel?.hidden).toBe(true); expect(catalogPanel?.hidden).toBe(true);
expect(catalogPanel?.style.zIndex).toBe("100");
expect(finishRule?.hidden).toBe(false); expect(finishRule?.hidden).toBe(false);
expect(interactionRule?.hidden).toBe(true); expect(interactionRule?.hidden).toBe(true);
expect(interactionRule?.style.display).toBe("none"); expect(interactionRule?.style.display).toBe("none");