From 484adc7a52a2f8a07dcaccfdae1b5766c58e36a0 Mon Sep 17 00:00:00 2001 From: Gaby Zifferman Date: Thu, 13 Jun 2024 19:36:40 +0200 Subject: [PATCH] add justify content center so the button is aligned --- src/components/general/Button/Button.tsx | 2 +- src/utils/utils.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/general/Button/Button.tsx b/src/components/general/Button/Button.tsx index f83c5abe6..38231f7bc 100644 --- a/src/components/general/Button/Button.tsx +++ b/src/components/general/Button/Button.tsx @@ -12,7 +12,7 @@ export interface IButtonProps extends AntButtonProps { } export const Button = (props: IButtonProps) => { const classMap = { - 'with-new-icon': 'u-display-flex u-align-items-center', + 'with-new-icon': 'u-display-flex u-align-items-center u-justify-center', } return ( diff --git a/src/utils/utils.css b/src/utils/utils.css index 24b3cb166..42be1f621 100644 --- a/src/utils/utils.css +++ b/src/utils/utils.css @@ -10,6 +10,10 @@ align-items: center !important; } +.u-justify-center { + justify-content: center !important; +} + .u-padding-sm { padding:var(--padding-sm) !important; }