only round buttons if size is set (#9377)

This commit is contained in:
Samuel Newman
2025-11-11 18:26:49 +02:00
committed by GitHub
parent 59ffaa8a81
commit cb2af3cd18
2 changed files with 3 additions and 5 deletions
+3 -4
View File
@@ -434,21 +434,20 @@ export const Button = React.forwardRef<View, ButtonProps>(
}
if (shape === 'default') {
baseStyles.push(a.rounded_full)
if (size === 'large') {
baseStyles.push({
baseStyles.push(a.rounded_full, {
paddingVertical: 12,
paddingHorizontal: 25,
gap: 3,
})
} else if (size === 'small') {
baseStyles.push({
baseStyles.push(a.rounded_full, {
paddingVertical: 8,
paddingHorizontal: 13,
gap: 3,
})
} else if (size === 'tiny') {
baseStyles.push({
baseStyles.push(a.rounded_full, {
paddingVertical: 5,
paddingHorizontal: 9,
gap: 2,
@@ -571,7 +571,6 @@ let NotificationFeedItem = ({
{padding: 10},
a.pr_lg,
t.atoms.border_contrast_low,
a.rounded_0,
item.notification.isRead
? undefined
: {