Make the buttons round again (#9367)

* make the base button round

* some miscalleaneous tweaks
This commit is contained in:
Samuel Newman
2025-11-11 02:01:41 +02:00
committed by GitHub
parent 5208aa4a65
commit bcd0e40192
7 changed files with 8 additions and 13 deletions
+1 -3
View File
@@ -434,25 +434,23 @@ export const Button = React.forwardRef<View, ButtonProps>(
}
if (shape === 'default') {
baseStyles.push(a.rounded_full)
if (size === 'large') {
baseStyles.push({
paddingVertical: 12,
paddingHorizontal: 25,
borderRadius: 10,
gap: 3,
})
} else if (size === 'small') {
baseStyles.push({
paddingVertical: 8,
paddingHorizontal: 13,
borderRadius: 8,
gap: 3,
})
} else if (size === 'tiny') {
baseStyles.push({
paddingVertical: 5,
paddingHorizontal: 9,
borderRadius: 6,
gap: 2,
})
}
-1
View File
@@ -129,7 +129,6 @@ export function BackButton({onPress, style, ...props}: Partial<ButtonProps>) {
size="small"
variant="ghost"
color="secondary"
shape="square"
onPress={onPressBack}
hitSlop={HITSLOP_30}
style={[
+1 -2
View File
@@ -204,8 +204,7 @@ let RepostButtonDialogInner = ({
label={_(msg`Cancel quote post`)}
onPress={onPressClose}
size="large"
variant="outline"
color="primary">
color="secondary">
<ButtonText>
<Trans>Cancel</Trans>
</ButtonText>