Skip to content

Commit 400adb6

Browse files
author
Cameron Chisholm
committed
fix(mobile): cta text alignment
1 parent 2ebc9fa commit 400adb6

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

‎apps/mobile/src/features/threads/git/gitSheetComponents.tsx‎

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function SheetActionButton(props: {
2424
return (
2525
<Pressable
2626
className={cn(
27-
"min-h-[48px] flex-1 flex-row items-center justify-center gap-2 rounded-[18px] px-4 py-3 disabled:opacity-[0.45]",
27+
"min-h-[48px] flex-1 items-center justify-center rounded-[18px] px-3 py-3 disabled:opacity-[0.45]",
2828
tone === "primary"
2929
? "bg-primary"
3030
: tone === "danger"
@@ -34,24 +34,26 @@ export function SheetActionButton(props: {
3434
disabled={props.disabled}
3535
onPress={props.onPress}
3636
>
37-
<SymbolView
38-
name={props.icon}
39-
size={16}
40-
tintColorClassName={textColorClassName}
41-
type="monochrome"
42-
/>
43-
<Text
44-
className={cn(
45-
"text-xs font-t3-bold tracking-[0.9px] uppercase",
46-
tone === "primary"
47-
? "text-primary-foreground"
48-
: tone === "danger"
49-
? "text-danger-foreground"
50-
: "text-secondary-foreground",
51-
)}
52-
>
53-
{props.label}
54-
</Text>
37+
<View className="max-w-full flex-row items-center justify-center gap-1.5">
38+
<SymbolView
39+
name={props.icon}
40+
size={16}
41+
tintColorClassName={textColorClassName}
42+
type="monochrome"
43+
/>
44+
<Text
45+
className={cn(
46+
"shrink text-center text-xs font-t3-bold tracking-[0.9px] uppercase",
47+
tone === "primary"
48+
? "text-primary-foreground"
49+
: tone === "danger"
50+
? "text-danger-foreground"
51+
: "text-secondary-foreground",
52+
)}
53+
>
54+
{props.label}
55+
</Text>
56+
</View>
5557
</Pressable>
5658
);
5759
}

0 commit comments

Comments
 (0)