From f19847f5712efe5f0272b8bafbcfa4beca89e709 Mon Sep 17 00:00:00 2001 From: Jack Senyitko Date: Fri, 10 Jul 2026 07:16:26 -0400 Subject: [PATCH] add coirrect sizing --- .../WorkspaceExpensifyCardsTableRow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Tables/WorkspaceExpensifyCardsTable/WorkspaceExpensifyCardsTableRow.tsx b/src/components/Tables/WorkspaceExpensifyCardsTable/WorkspaceExpensifyCardsTableRow.tsx index d316dbbc1ef3..a14f7925de3e 100644 --- a/src/components/Tables/WorkspaceExpensifyCardsTable/WorkspaceExpensifyCardsTableRow.tsx +++ b/src/components/Tables/WorkspaceExpensifyCardsTable/WorkspaceExpensifyCardsTableRow.tsx @@ -42,6 +42,7 @@ export default function WorkspaceExpensifyCardsTableRow({item, rowIndex, shouldU const theme = useTheme(); const session = useSession(); + const avatarSize = shouldUseNarrowTableLayout ? CONST.AVATAR_SIZE.DEFAULT : CONST.AVATAR_SIZE.SMALL; const cardholderName = temporaryGetDisplayNameOrDefault({passedPersonalDetails: item.cardholder, translate}); const narrowLayoutSubtitle = [item.lastFourPAN, item.name].filter(Boolean).join(` ${CONST.DOT_SEPARATOR} `); const cardType = item.isVirtual ? translate('workspace.expensifyCard.virtual') : translate('workspace.expensifyCard.physical'); @@ -99,7 +100,7 @@ export default function WorkspaceExpensifyCardsTableRow({item, rowIndex, shouldU source={item.cardholder?.avatar ?? icons.FallbackAvatar} avatarID={item.cardholder?.accountID} type={CONST.ICON_TYPE_AVATAR} - size={CONST.AVATAR_SIZE.DEFAULT} + size={avatarSize} />