From 2d2669be3c77ff5a1ea69b3273be82deab8e49d5 Mon Sep 17 00:00:00 2001 From: MobileMage Date: Sat, 25 Jul 2026 01:04:47 +0100 Subject: [PATCH] Fix spacing between card name and issue card button on resize Apply a permanent flex gap3 on the feed-selector/header-buttons parent container instead of the conditional mt3 margin, which never applied at medium width because shouldDisplayButtonsInSeparateLine is false there. Fixes #94988. --- .../WorkspaceExpensifyCardListPage.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx index 1b16917410bd..eaf35b02abeb 100644 --- a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx +++ b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx @@ -208,12 +208,7 @@ function WorkspaceExpensifyCardListPage({route, cardsList, fundID}: WorkspaceExp ] : []; const getHeaderButtons = () => { - const headerButtonsRowStyle = [ - styles.flexRow, - styles.gap2, - !shouldShowSelector && shouldDisplayButtonsInSeparateLine && styles.mb3, - shouldShowSelector && shouldDisplayButtonsInSeparateLine && styles.mt3, - ]; + const headerButtonsRowStyle = [styles.flexRow, styles.gap2, !shouldShowSelector && shouldDisplayButtonsInSeparateLine && styles.mb3]; const shouldShowBulkSelectionDropdown = shouldUseNarrowLayout ? isMobileSelectionModeEnabled : selectedCardIDs.length > 0; @@ -310,7 +305,15 @@ function WorkspaceExpensifyCardListPage({route, cardsList, fundID}: WorkspaceExp {!shouldShowSelector && shouldDisplayButtonsInSeparateLine && isBankAccountVerified && shouldShowHeaderButtons && {getHeaderButtons()}} {shouldShowSelector && ( - + Navigation.navigate(createDynamicRoute(DYNAMIC_ROUTES.WORKSPACE_EXPENSIFY_CARD_SELECT_FEED.path))}