π OpenHands: AI-Driven Development
Fix mobile layout for repo picker and suggested tasks (#8137)
Xingyao Wang5fa01ed278fe
diff --git a/frontend/__tests__/routes/home-screen.test.tsx b/frontend/__tests__/routes/home-screen.test.tsxindex 2df63ca62a..2b327028a3 100644--- a/frontend/__tests__/routes/home-screen.test.tsx+++ b/frontend/__tests__/routes/home-screen.test.tsx@@ -91,6 +91,13 @@ describe("HomeScreen", () => {screen.getByTestId("task-suggestions");});+ it("should have responsive layout for mobile and desktop screens", async () => {+ renderHomeScreen();++ const mainContainer = screen.getByTestId("home-screen").querySelector("main");+ expect(mainContainer).toHaveClass("flex", "flex-col", "md:flex-row");+ });+it("should filter the suggested tasks based on the selected repository", async () => {const retrieveUserGitRepositoriesSpy = vi.spyOn(GitService,diff --git a/frontend/src/routes/home.tsx b/frontend/src/routes/home.tsxindex f7ff5fe84a..4331fbbfec 100644--- a/frontend/src/routes/home.tsx+++ b/frontend/src/routes/home.tsx@@ -22,7 +22,7 @@ function HomeScreen() {<hr className="border-[#717888]" />- <main className="flex justify-between gap-4">+ <main className="flex flex-col md:flex-row justify-between gap-4"><RepoConnectoronRepoSelection={(title) => setSelectedRepoTitle(title)}/>