fix(webui): fit session search above the mobile keyboard
This commit is contained in:
1 parent
fc729df9ab
commit
2442d88b91
6 files changed
+38
-21
No files matched your search
@@ -48,6 +48,14 @@ describe("SessionSearchDialog", () => {
|
||||
expect(dialog).toHaveClass("bg-background");
|
||||
expect(dialog.className).not.toContain("bg-popover/");
|
||||
expect(dialog.className).not.toContain("backdrop-blur");
|
||||
// The body portal must share the app's keyboard-fitted frame. Its list
|
||||
// height is bounded by that frame, not by the layout viewport's 100vh.
|
||||
expect(dialog.parentElement).toHaveStyle({
|
||||
top: "var(--app-viewport-top, 0px)",
|
||||
height: "var(--app-viewport-height, 100%)",
|
||||
bottom: "auto",
|
||||
});
|
||||
expect(dialog).toHaveClass("max-h-[min(40rem,100%)]");
|
||||
expect(screen.getByTestId("session-search-scroll")).toHaveClass("overflow-y-auto");
|
||||
expect(screen.queryByText("/model fast")).not.toBeInTheDocument();
|
||||
fireEvent.change(screen.getByRole("textbox", { name: "Search" }), {
|
||||
|
||||
Reference in new issue
Block a user