@devries-cameron20 / t3code-1 / commits / 2ba1a09dcb
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): keep the collapsed Android rail square (#26039)

Alex committed Oct 27, 2026 at 11:02 UTC 2ba1a09dcb92361a7006dfa5fd62125989d72263
1 file changed +3 -3
apps/mobile/modules/t3-native-controls/android/src/main/java/expo/modules/t3nativecontrols/T3WorkspaceNavigationModule.kt
+3 -3
@@ -284,6 +284,7 @@ class T3WorkspaceNavigationView(
284 },
285 ) {
286 val fraction = progress.coerceIn(0f, 1f)
287 + val railShape = RoundedCornerShape(topEnd = 16.dp * fraction, bottomEnd = 16.dp * fraction)
288 if (fraction > 0f) {
289 Scrim(
290 contentDescription = "Close navigation rail",
@@ -295,8 +296,8 @@ class T3WorkspaceNavigationView(
296 Modifier
297 .fillMaxHeight()
298 .width(lerp(RAIL_WIDTH, EXPANDED_RAIL_WIDTH, progress.coerceAtLeast(0f)))
298 - .shadow(RAIL_SHADOW * fraction, RAIL_EXPANDED_SHAPE, clip = false)
299 - .background(Color(containerColor), RAIL_EXPANDED_SHAPE)
299 + .shadow(RAIL_SHADOW * fraction, railShape, clip = false)
300 + .background(Color(containerColor), railShape)
301 .padding(top = safeAreaTop.dp, bottom = safeAreaBottom.dp + 12.dp)
302 .selectableGroup(),
303 ) {
@@ -437,7 +438,6 @@ class T3WorkspaceNavigationView(
438 val FAB_SIZE = 48.dp
439 val ICON_SIZE = 24.dp
440 val RAIL_SHADOW = 6.dp
440 - val RAIL_EXPANDED_SHAPE = RoundedCornerShape(topEnd = 16.dp, bottomEnd = 16.dp)
441 const val DISABLED_ALPHA = 0.4f
442
443 // Labels fade in over the second half of the widening, once there is room for them, and