only round buttons if size is set (#9377)
This commit is contained in:
@@ -434,21 +434,20 @@ export const Button = React.forwardRef<View, ButtonProps>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (shape === 'default') {
|
if (shape === 'default') {
|
||||||
baseStyles.push(a.rounded_full)
|
|
||||||
if (size === 'large') {
|
if (size === 'large') {
|
||||||
baseStyles.push({
|
baseStyles.push(a.rounded_full, {
|
||||||
paddingVertical: 12,
|
paddingVertical: 12,
|
||||||
paddingHorizontal: 25,
|
paddingHorizontal: 25,
|
||||||
gap: 3,
|
gap: 3,
|
||||||
})
|
})
|
||||||
} else if (size === 'small') {
|
} else if (size === 'small') {
|
||||||
baseStyles.push({
|
baseStyles.push(a.rounded_full, {
|
||||||
paddingVertical: 8,
|
paddingVertical: 8,
|
||||||
paddingHorizontal: 13,
|
paddingHorizontal: 13,
|
||||||
gap: 3,
|
gap: 3,
|
||||||
})
|
})
|
||||||
} else if (size === 'tiny') {
|
} else if (size === 'tiny') {
|
||||||
baseStyles.push({
|
baseStyles.push(a.rounded_full, {
|
||||||
paddingVertical: 5,
|
paddingVertical: 5,
|
||||||
paddingHorizontal: 9,
|
paddingHorizontal: 9,
|
||||||
gap: 2,
|
gap: 2,
|
||||||
|
|||||||
@@ -571,7 +571,6 @@ let NotificationFeedItem = ({
|
|||||||
{padding: 10},
|
{padding: 10},
|
||||||
a.pr_lg,
|
a.pr_lg,
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
a.rounded_0,
|
|
||||||
item.notification.isRead
|
item.notification.isRead
|
||||||
? undefined
|
? undefined
|
||||||
: {
|
: {
|
||||||
|
|||||||
Reference in New Issue
Block a user