TypeScript
fix(mobile): keep iPad tab bar within narrow sidebars (#26198)
Julius Marmingec570c2cd5cdf
diff --git a/apps/mobile/src/features/workspace/WorkspaceNativeTabs.ios.tsx b/apps/mobile/src/features/workspace/WorkspaceNativeTabs.ios.tsxindex a29110dfde4..93852f81fab 100644--- a/apps/mobile/src/features/workspace/WorkspaceNativeTabs.ios.tsx+++ b/apps/mobile/src/features/workspace/WorkspaceNativeTabs.ios.tsx@@ -169,7 +169,11 @@ export function WorkspaceNativeTabs(props: {position: "absolute",left: 0,bottom: 0,- width: layout.listPaneWidth ?? width,+ // UIKit can shrink the sidebar to 280pt independently of its preferred width.+ width:+ deviceType === "pad"+ ? Math.min(280, layout.listPaneWidth ?? width, width)+ : (layout.listPaneWidth ?? width),height: 128,}}>