TypeScript
fix(mobile): Android split content keeps a gap at the screen edge (#26276)
Julius Marminge949929dda5df
diff --git a/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx b/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsxindex a2f880ba724..c3b46cf8e24 100644--- a/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx+++ b/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx@@ -626,8 +626,10 @@ function AdaptiveWorkspaceLayoutContent(workspaceInspector !== null && workspaceInspector.active && panes.auxiliaryPaneVisible? (panes.auxiliaryPaneWidth ?? 0): 0;+ // Android's split content is a rounded card: keep it off the screen edge like the list card.+ const contentEndGap = Platform.OS === "android" && layout.usesSplitView ? 4 : 0;const contentTargetWidth = layout.usesSplitView- ? Math.max(0, panes.contentPaneWidth - inspectorColumnTargetWidth)+ ? Math.max(0, panes.contentPaneWidth - inspectorColumnTargetWidth - contentEndGap): null;const [listPaneSizing, setListPaneSizing] = useState({viewportWidth,@@ -936,6 +938,7 @@ function AdaptiveWorkspaceLayoutContent(flex: 1,width: contentTargetWidth,alignSelf: contentAnchor.end ? "flex-end" : "flex-start",+ marginRight: contentAnchor.end ? contentEndGap : 0,}: { flex: 1 }}