refactor(webui): derive footer spacing from thread tail

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-20 11:47:27 +08:00
1 parent 900675e7f8
commit 0f3cabb16d
4 files changed
+23 -20

No files matched your search

+1 -1
View File
@@ -1532,7 +1532,7 @@ describe("ThreadMessages", () => {
.closest<HTMLElement>("[data-thread-display-unit]")!;
expect(firstAnswer.querySelector("[data-assistant-footer]")).not.toBeInTheDocument();
expect(finalAnswer.querySelector("[data-assistant-footer]"))
.toHaveAttribute("data-state", "visible");
.toHaveAttribute("data-state", "reserved");
expect(container.querySelectorAll('[data-assistant-footer] [aria-label="Copy"]')).toHaveLength(1);
expect(container.querySelectorAll('[data-assistant-footer] [aria-label="Fork"]')).toHaveLength(1);