fix(sql-files): prevent sticky folder header bleed-through

This commit is contained in:
zipg authored and GitHub committed 2026-08-16 15:26:30 +08:00
1 parent 4660a11f25
commit d2e77a45dd
2 files changed
+10 -2

No files matched your search

@@ -22,3 +22,11 @@ describe("SqlFilePanel selection", () => {
expect(panelSource).toContain('data-sql-file-row="true"');
});
});
describe("SqlFilePanel folder headers", () => {
it("keeps sticky folder headers opaque while the file list scrolls", () => {
expect(panelSource).toContain("bg-[color-mix(in_oklab,var(--muted)_10%,var(--background))] sticky top-0");
expect(panelSource).toContain("hover:bg-[color-mix(in_oklab,var(--accent)_40%,var(--background))]");
expect(panelSource).not.toContain("bg-muted/10 sticky top-0");
});
});