TypeScript
fix(mobile): sheet action buttons text alignment (#11260)
Cameron Chisholm8da749b8d532
diff --git a/apps/mobile/src/features/threads/git/gitSheetComponents.tsx b/apps/mobile/src/features/threads/git/gitSheetComponents.tsxindex 249bdcba321..53d5acef171 100644--- a/apps/mobile/src/features/threads/git/gitSheetComponents.tsx+++ b/apps/mobile/src/features/threads/git/gitSheetComponents.tsx@@ -36,8 +36,7 @@ export function SheetActionButton(props: {return (<PressableclassName={cn(- "min-h-[48px] flex-row items-center justify-center gap-2 px-4 py-3 disabled:opacity-[0.45]",- "flex-1 rounded-[18px]",+ "min-h-[48px] flex-1 items-center justify-center rounded-[18px] px-3 py-3 disabled:opacity-[0.45]",tone === "primary" ? "bg-primary" : tone === "danger" ? "bg-danger" : "bg-secondary",tone !== "primary" &&(tone === "danger" ? "border border-danger-border" : "border border-secondary-border"),@@ -46,24 +45,26 @@ export function SheetActionButton(props: {disabled={props.disabled}onPress={props.onPress}>- <SymbolView- name={props.icon}- size={16}- tintColorClassName={textColorClassName}- type="monochrome"- />- <Text- className={cn(- "text-xs font-t3-bold tracking-[0.9px] uppercase",- tone === "primary"- ? "text-primary-foreground"- : tone === "danger"- ? "text-danger-foreground"- : "text-secondary-foreground",- )}- >- {props.label}- </Text>+ <View className="max-w-full flex-row items-center justify-center gap-1.5">+ <SymbolView+ name={props.icon}+ size={16}+ tintColorClassName={textColorClassName}+ type="monochrome"+ />+ <Text+ className={cn(+ "shrink text-center text-xs font-t3-bold tracking-[0.9px] uppercase",+ tone === "primary"+ ? "text-primary-foreground"+ : tone === "danger"+ ? "text-danger-foreground"+ : "text-secondary-foreground",+ )}+ >+ {props.label}+ </Text>+ </View></Pressable>);}