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:
5
.changeset/fn-4120-mobile-chat-search.md
Normal file
5
.changeset/fn-4120-mobile-chat-search.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Show the chat sidebar search input on mobile instead of leaving an orphan search icon.
|
||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user