feat(FN-4120): add mobile chat search to ChatView

Added mobile chat search functionality to the ChatView with a supporting test update and changeset for release.

Fusion-Task-Id: FN-4120
This commit is contained in:
Fusion
2026-05-12 09:09:36 -07:00
committed by gsxdsm
parent 429bdc213b
commit 87377794e5
3 changed files with 12 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": patch
---
Show the chat sidebar search input on mobile instead of leaving an orphan search icon.

View File

@@ -1565,7 +1565,7 @@
} }
.chat-sidebar-search { .chat-sidebar-search {
display: none; min-height: calc(var(--space-2xl) + var(--space-xs));
} }
.chat-sidebar-list { .chat-sidebar-list {

View File

@@ -3967,8 +3967,12 @@ describe("ChatView mobile CSS contract", () => {
expect(mobileRuleContains(".chat-sidebar-header", "display: none")).toBe(true); expect(mobileRuleContains(".chat-sidebar-header", "display: none")).toBe(true);
}); });
it("mobile .chat-sidebar-search is hidden", () => { it("mobile .chat-sidebar-search remains visible (FN-4120)", () => {
expect(mobileRuleContains(".chat-sidebar-search", "display: none")).toBe(true); expect(mobileRuleNotContains(".chat-sidebar-search", "display: none")).toBe(true);
});
it("mobile .chat-sidebar-search keeps a token-based touch target (FN-4120)", () => {
expect(mobileRuleContains(".chat-sidebar-search", "min-height: calc(var(--space-2xl) + var(--space-xs))")).toBe(true);
}); });
it("mobile .chat-sidebar-list has flex: 1 and overflow-y: auto for scrolling", () => { it("mobile .chat-sidebar-list has flex: 1 and overflow-y: auto for scrolling", () => {