fix: align sidebar truncation contract

This commit is contained in:
Jesse_Chen
2026-07-18 19:18:41 +08:00
parent 23fc15dbe1
commit 651c8a1a50
+1 -1
View File
@@ -220,7 +220,7 @@ test("makes SidebarContent the only sidebar scroll owner", () => {
assert.match(cssBlock('[data-sidebar="content"]'), /overflow-y:\s*auto/);
assert.match(cssBlock('[data-sidebar="footer"]'), /flex:\s*0\s+0\s+auto/);
assert.doesNotMatch(cssBlock(".session-list"), /overflow(?:-y)?:\s*auto/);
assert.match(cssBlock(".session-list button > span"), /text-overflow:\s*ellipsis/);
assert.match(readProjectFile("src/components/sidebar-session-row.tsx"), /className="session-title"[\s\S]*className="truncate"/);
assert.match(globalStyles, /\[data-active="true"\][^{]*\{[^}]*background:\s*var\(--sidebar-accent\)/);
});