Skip to content

Commit c570c2c

Browse files
fix(mobile): keep iPad tab bar within narrow sidebars (#26198)
1 parent 735cc3c commit c570c2c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/mobile/src/features/workspace/WorkspaceNativeTabs.ios.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ export function WorkspaceNativeTabs(props: {
169169
position: "absolute",
170170
left: 0,
171171
bottom: 0,
172-
width: layout.listPaneWidth ?? width,
172+
// UIKit can shrink the sidebar to 280pt independently of its preferred width.
173+
width:
174+
deviceType === "pad"
175+
? Math.min(280, layout.listPaneWidth ?? width, width)
176+
: (layout.listPaneWidth ?? width),
173177
height: 128,
174178
}}
175179
>

0 commit comments

Comments
 (0)