From dcbe6db0101c075076d2af2d44ba15c1773dc4c0 Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Tue, 10 Dec 2024 23:27:44 +0300 Subject: [PATCH] fix quickAction label spacing --- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx index d36003960fe4..b61a72baf6d7 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx @@ -434,6 +434,7 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl // Define common properties in baseQuickAction const baseQuickAction = { label: translate('quickAction.header'), + labelStyle: [styles.pt3, styles.pb2], isLabelHoverable: false, floatRightAvatars: quickActionAvatars, floatRightAvatarSize: CONST.AVATAR_SIZE.SMALL, @@ -488,6 +489,8 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl styles.popoverMenuItem.paddingHorizontal, styles.popoverMenuItem.paddingVertical, styles.quickActionTooltipWrapper, + styles.pt3, + styles.pb2, renderQuickActionTooltip, quickAction?.action, quickAction?.isFirstQuickAction, @@ -512,12 +515,12 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl onItemSelected={hideCreateMenu} fromSidebarMediumScreen={!shouldUseNarrowLayout} menuItems={[ + ...expenseMenuItems, { icon: Expensicons.ChatBubble, text: translate('sidebarScreen.fabNewChat'), onSelected: () => interceptAnonymousUser(Report.startNewChat), }, - ...expenseMenuItems, ...(canSendInvoice ? [ {