Update Button: Fix padding in Telegram Update button (#5164)

This commit is contained in:
Alexander Zinchuk 2024-11-09 15:40:34 +04:00
parent 9c8984ff79
commit c0be156229
3 changed files with 9 additions and 2 deletions

View File

@ -222,7 +222,7 @@ const LeftMain: FC<OwnProps> = ({
{shouldRenderUpdateButton && (
<Button
fluid
pill
badge
className={buildClassName('btn-update', updateButtonClassNames)}
onClick={handleUpdateClick}
>

View File

@ -384,9 +384,13 @@
&.pill {
padding: 0.5rem 0.75rem;
}
&.badge {
padding: 0.5rem 1.75rem;
}
}
&.pill {
&.pill, &.badge {
border-radius: 1.75rem;
padding-left: 1.75rem;
padding-right: 1.75rem;

View File

@ -29,6 +29,7 @@ export type OwnProps = {
className?: string;
round?: boolean;
pill?: boolean;
badge?: boolean;
fluid?: boolean;
isText?: boolean;
isLoading?: boolean;
@ -84,6 +85,7 @@ const Button: FC<OwnProps> = ({
className,
round,
pill,
badge,
fluid,
isText,
isLoading,
@ -130,6 +132,7 @@ const Button: FC<OwnProps> = ({
round && 'round',
pill && 'pill',
fluid && 'fluid',
badge && 'badge',
isNotInteractive && 'disabled',
nonInteractive && 'non-interactive',
allowDisabledClick && 'click-allowed',