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 && ( {shouldRenderUpdateButton && (
<Button <Button
fluid fluid
pill badge
className={buildClassName('btn-update', updateButtonClassNames)} className={buildClassName('btn-update', updateButtonClassNames)}
onClick={handleUpdateClick} onClick={handleUpdateClick}
> >

View File

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

View File

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