fix(sidebar): use sidebar theme color for sticky database rows

This commit is contained in:
Mutsumi authored and GitHub committed 2026-09-04 00:29:29 +08:00
1 parent de73c2bd73
commit 39de9499b4
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -24,8 +24,10 @@ test("plain tree sticky headers position the full row wrapper without a divider"
assert.match(treeItem, /<div v-else :class="\{ 'sidebar-tree-item--sticky': stickyHeader \}" @contextmenu="onTreeItemContextMenu">/);
assert.doesNotMatch(treeItem, /'tree-item-highlight': highlighted,\s*'sidebar-tree-item--sticky': stickyHeader/);
assert.match(treeItem, /\.sidebar-tree-item--sticky\s*\{[\s\S]*?position:\s*sticky;/);
assert.match(treeItem, /\.sidebar-tree-item--sticky\s*\{[\s\S]*?background-color:\s*var\(--sidebar\);/);
assert.doesNotMatch(treeItem, /\.sidebar-tree-item--sticky\s*\{[^}]*border-bottom:/);
assert.doesNotMatch(connectionTree, /sticky-database-header[^\n]*border-b/);
assert.match(connectionTree, /\.sticky-database-header\s*\{[\s\S]*?background-color:\s*var\(--sidebar\);/);
assert.match(connectionTree, /v-for="\(item, index\) in flatNodes"/);
assert.match(connectionTree, /:sticky-header="isPlainStickyContainerNode\(index\)"/);
assert.match(connectionTree, /return flatTreeIndex\.value\.stickyContainerIndexByIndex\[index\] === index;/);