Skip to content

Commit 82bb93d

Browse files
committed
fix: restore sidebar on wide auto layouts
1 parent 70e0e3f commit 82bb93d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/ui/lib/responsive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ export function resolveResponsiveLayout(requestedLayout: LayoutMode, viewportWid
5555
return {
5656
viewport,
5757
layout: "split",
58-
showFilesPane: viewport === "full",
58+
showFilesPane: true,
5959
};
6060
}

test/app-responsive.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ describe("responsive shell", () => {
142142
expect(full).toContain("drag divider resize");
143143
expect(full).toContain("│");
144144

145-
expect(medium).not.toContain("Files");
145+
expect(medium).toContain("M alpha.ts");
146146
expect(medium).not.toContain("Changeset summary");
147147
expect(medium).toContain("│");
148-
expect(medium).not.toContain("drag divider resize");
148+
expect(medium).toContain("drag divider resize");
149149

150150
expect(tight).not.toContain("Files");
151151
expect(tight).not.toContain("Changeset summary");

0 commit comments

Comments
 (0)