From cb2af3cd1836c184b0c83f69f7bff6628b6f5487 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 11 Nov 2025 18:26:49 +0200 Subject: [PATCH] only round buttons if size is set (#9377) --- src/components/Button.tsx | 7 +++---- src/view/com/notifications/NotificationFeedItem.tsx | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index b9b5a08170..d5b114fae7 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -434,21 +434,20 @@ export const Button = React.forwardRef( } 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, diff --git a/src/view/com/notifications/NotificationFeedItem.tsx b/src/view/com/notifications/NotificationFeedItem.tsx index 9444fa5287..5809e71065 100644 --- a/src/view/com/notifications/NotificationFeedItem.tsx +++ b/src/view/com/notifications/NotificationFeedItem.tsx @@ -571,7 +571,6 @@ let NotificationFeedItem = ({ {padding: 10}, a.pr_lg, t.atoms.border_contrast_low, - a.rounded_0, item.notification.isRead ? undefined : {