further layout preview fixes

This commit is contained in:
Codex Agent
2025-12-12 08:34:19 +01:00
parent 57be7d0030
commit 7cf7c4b8df
8 changed files with 1767 additions and 438 deletions

View File

@@ -72,15 +72,17 @@ export function CTAButton({
label,
onPress,
tone = 'primary',
fullWidth = true,
}: {
label: string;
onPress: () => void;
tone?: 'primary' | 'ghost';
fullWidth?: boolean;
}) {
const theme = useTheme();
const isPrimary = tone === 'primary';
return (
<Pressable onPress={onPress} style={{ width: '100%' }}>
<Pressable onPress={onPress} style={{ width: fullWidth ? '100%' : undefined, flex: fullWidth ? undefined : 1 }}>
<XStack
height={56}
borderRadius={14}