The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): scale compose buttons with text size (#26100)
Co-authored-by: maria-rcks <maria@kuuro.net>
Nick Anisimov committed
Oct 31, 2026 at 05:37 UTC
01b026f70fad9ec892eef1533953ce57114a678d
1 file changed
+9
-9
apps/mobile/src/components/ScrollComposeButton.android.tsx
+9
-9
@@ -3,13 +3,12 @@ import { Box, ExtendedFloatingActionButton, Icon, Text } from "@expo/ui/jetpack-
3
import {
4
defaultMinSize,
5
fillMaxWidth,
6
- graphicsLayer,
6
height,
7
onSizeChanged,
8
size,
9
} from "@expo/ui/jetpack-compose/modifiers";
10
import { useState } from "react";
12
-import { Pressable, View, type StyleProp, type ViewStyle } from "react-native";
11
+import { I18nManager, Pressable, View, type StyleProp, type ViewStyle } from "react-native";
12
import { useAndroidControlSizing } from "./ui/useAndroidControlSizing";
13
import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
14
import { resolveScaledTextRole } from "../lib/appearancePreferences";
@@ -37,7 +36,14 @@ export function ScrollComposeButton(props: {
36
className={props.className}
37
style={[props.style, { left: 20, height: fabSize }]}
38
>
40
- <View pointerEvents="none" importantForAccessibility="no-hide-descendants">
39
+ <View
40
+ pointerEvents="none"
41
+ importantForAccessibility="no-hide-descendants"
42
+ style={{
43
+ transform: [{ scale }],
44
+ transformOrigin: I18nManager.isRTL ? "top left" : "top right",
45
+ }}
46
+ >
47
<NativeThemeHost
48
matchContents={{ vertical: true }}
49
ignoreSafeAreaKeyboardInsets
@@ -50,12 +56,6 @@ export function ScrollComposeButton(props: {
56
modifiers={[
57
defaultMinSize({ minWidth: nativeSize }),
58
height(nativeSize),
53
- graphicsLayer({
54
- scaleX: scale,
55
- scaleY: scale,
56
- transformOriginX: 1,
57
- transformOriginY: 0,
58
- }),
59
onSizeChanged(rememberWidth),
60
]}
61
>