Skip to content

Commit babe2c8

Browse files
committed
fix(android): Fit the worktree spinner to its header
1 parent 999b4c9 commit babe2c8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎apps/mobile/src/features/threads/worktree-setup-card.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
import { worktreeSetupAgentStarted } from "@t3tools/client-runtime/worktree-setup";
77
import { formatDuration } from "@t3tools/shared/orchestrationTiming";
88
import { useEffect, useState } from "react";
9-
import { AppState, Pressable, ScrollView, View } from "react-native";
9+
import { AppState, Platform, Pressable, ScrollView, View } from "react-native";
1010
import { useSafeAreaInsets } from "react-native-safe-area-context";
1111
import { AppActivityIndicator } from "../../components/AppActivityIndicator";
1212
import { AppText as Text } from "../../components/AppText";
@@ -99,9 +99,13 @@ export function WorktreeSetupCard(props: WorktreeSetupCardProps) {
9999
>
100100
{backgroundSetup ? (
101101
<AppActivityIndicator
102-
size="small"
102+
size={Platform.OS === "android" ? 12 : "small"}
103103
colorClassName="accent-icon-muted"
104-
style={{ width: 12, height: 12, transform: [{ scale: 0.65 }] }}
104+
style={{
105+
width: 12,
106+
height: 12,
107+
transform: Platform.OS === "android" ? undefined : [{ scale: 0.65 }],
108+
}}
105109
/>
106110
) : failed ? (
107111
<SymbolView

0 commit comments

Comments
 (0)