fix: prevent knowledge search icons from overlapping text

Preserve icon spacing in graph and document search fields against shared input styles. Update scheduled approval tests to expand the collapsed project task list before interacting with task approvals.

Release note: Knowledge search fields now keep the search icon clear of placeholder and entered text.
This commit is contained in:
mesalogo
2026-09-18 16:03:10 +08:00
parent daa14d0b7e
commit 9bd0dae865
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -2652,6 +2652,7 @@ describe("App", () => {
expect(screen.getByRole("button", { name: /全项目活动/u })).toHaveTextContent("1 个待处理");
fireEvent.click(screen.getByRole("button", { name: "切换助手工作栏" }));
fireEvent.click(screen.getByRole("tab", { name: /任务中心/u }));
fireEvent.click(screen.getByRole("button", { name: /项目任务/u }));
const taskRow = screen.getByRole("button", { name: /发布任务发布审批会话/u }).closest("article")!;
expect(within(taskRow).getByLabelText("等待审批: write_file")).toBeVisible();
expect(screen.queryByRole("heading", { name: "等待审批" })).not.toBeInTheDocument();
@@ -6044,6 +6045,7 @@ describe("App", () => {
act(() => agentListener?.({ requestId: runId, type: "approval", approvalId, title: "Scheduled write", description: "Confirm write", toolName: "write_file", argumentSummary: "file.md", allowPermanent: false }));
fireEvent.click(screen.getByRole("button", { name: "切换助手工作栏" }));
fireEvent.click(screen.getByRole("tab", { name: /任务中心/u }));
fireEvent.click(screen.getByRole("button", { name: /项目任务/u }));
const row = screen.getByRole("button", { name: /Dispatched taskScheduled approval target/u }).closest("article")!;
expect(within(row).getByLabelText("等待审批: write_file")).toBeVisible();
const otherRow = screen.getByRole("button", { name: /Another taskScheduled approval target/u }).closest("article")!;
+2 -2
View File
@@ -13832,8 +13832,8 @@ details.settings-section > :not(summary) + :not(summary) {
pointer-events: none;
}
.knowledge-documents__search input,
.knowledge-graph__search input {
.knowledge-page .knowledge-documents__search input,
.knowledge-page .knowledge-graph__search input {
padding-left: 34px;
}