The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 09:30 UTC
fix(mobile): keep reduced-motion views visible and aligned (#23230)
Co-authored-by: maria-rcks <maria@kuuro.net>
Alex committed
Oct 31, 2026 at 19:04 UTC
6daebdb6719432f009b7a36477e831528c716afa
2 files changed
+10
-6
apps/mobile/src/components/ComposerToolbar.tsx
+3
-2
@@ -12,7 +12,7 @@ import {
12
type ViewStyle,
13
} from "react-native";
14
15
-import Animated, { FadeIn } from "react-native-reanimated";
15
+import Animated, { FadeIn, useReducedMotion } from "react-native-reanimated";
16
17
import { cn } from "../lib/cn";
18
import { AppText as Text } from "./ui/AppText";
@@ -43,6 +43,7 @@ export function ComposerInlineControl(props: {
43
readonly showChevron?: boolean;
44
}) {
45
const { scale, smallIconSize } = useAndroidControlSizing();
46
+ const reducedMotion = useReducedMotion();
47
// Keep the picker anchored to its parent while the editor changes height.
48
const animatesLabel = props.iconOnly !== undefined;
49
const iconSize = props.size === "large" ? 20 : smallIconSize;
@@ -85,7 +86,7 @@ export function ComposerInlineControl(props: {
86
{props.iconOnly ? null : (
87
<Animated.View
88
className="shrink"
88
- entering={animatesLabel ? INLINE_CONTROL_LABEL_ENTERING : undefined}
89
+ entering={animatesLabel && !reducedMotion ? INLINE_CONTROL_LABEL_ENTERING : undefined}
90
>
91
<Text
92
className={cn(
apps/mobile/src/features/threads/floating-working-control.tsx
+7
-4
@@ -16,6 +16,7 @@ import Animated, {
16
ReduceMotion,
17
type SharedValue,
18
useAnimatedStyle,
19
+ useReducedMotion,
20
useSharedValue,
21
withTiming,
22
} from "react-native-reanimated";
@@ -79,6 +80,7 @@ export function FloatingWorkingControl(props: {
80
readonly lift?: SharedValue<number>;
81
}) {
82
const { width: windowWidth } = useWindowDimensions();
83
+ const reducedMotion = useReducedMotion();
84
const [overlayWidth, setOverlayWidth] = useState(windowWidth);
85
const [queueWidth, setQueueWidth] = useState(0);
86
const [actionWidth, setActionWidth] = useState(0);
@@ -271,8 +273,8 @@ export function FloatingWorkingControl(props: {
273
className="absolute left-0 right-0 z-20 items-center"
274
style={[{ top: -CONTROL_OVERLAY_OFFSET }, liftStyle]}
275
onLayout={(event) => setOverlayWidth(event.nativeEvent.layout.width)}
274
- entering={NATIVE_LIQUID_GLASS_SUPPORTED ? undefined : CONTROL_ENTERING}
275
- exiting={NATIVE_LIQUID_GLASS_SUPPORTED ? undefined : CONTROL_EXITING}
276
+ entering={NATIVE_LIQUID_GLASS_SUPPORTED || reducedMotion ? undefined : CONTROL_ENTERING}
277
+ exiting={NATIVE_LIQUID_GLASS_SUPPORTED || reducedMotion ? undefined : CONTROL_EXITING}
278
>
279
{hasCapsule && NATIVE_LIQUID_GLASS_SUPPORTED ? (
280
<UniwindGlassContainer
@@ -551,12 +553,13 @@ function StatusLabelRow(props: {
553
readonly onLayout: (event: LayoutChangeEvent) => void;
554
readonly onPress?: () => void;
555
}) {
556
+ const reducedMotion = useReducedMotion();
557
const rowClassName = `h-11 flex-row items-center px-4 ${props.className ?? ""}`;
558
return (
559
<Animated.View
560
className="absolute max-w-full"
558
- entering={LABEL_ENTERING}
559
- exiting={LABEL_EXITING}
561
+ entering={reducedMotion ? undefined : LABEL_ENTERING}
562
+ exiting={reducedMotion ? undefined : LABEL_EXITING}
563
onLayout={props.onLayout}
564
>
565
{props.onPress ? (