diff --git a/packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.png b/packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.png index fcc9a4669d8..90efef73ea0 100644 Binary files a/packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.png and b/packages/desktop-client/e2e/mobile.test.js-snapshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.png differ diff --git a/packages/desktop-client/src/components/budget/MobileBudgetTable.js b/packages/desktop-client/src/components/budget/MobileBudgetTable.js index 6e247d0ec4c..8667a41de50 100644 --- a/packages/desktop-client/src/components/budget/MobileBudgetTable.js +++ b/packages/desktop-client/src/components/budget/MobileBudgetTable.js @@ -305,7 +305,7 @@ const ExpenseCategory = memo(function ExpenseCategory({ flexDirection: 'row', flex: 1, justifyContent: 'center', - alignItems: 'flex-start', + alignItems: 'center', height: ROW_HEIGHT, }} > @@ -313,13 +313,40 @@ const ExpenseCategory = memo(function ExpenseCategory({ focused={isEditing} inputRef={inputRef} rightContent={ - + <> + + {tooltip.isOpen && ( + { + tooltip.close(); + inputRef.current?.focus(); + }} + > + + + )} + } style={{ width: '100%' }} placeholder="Category Name" @@ -332,31 +359,6 @@ const ExpenseCategory = memo(function ExpenseCategory({ } }} /> - {tooltip.isOpen && ( - { - tooltip.close(); - inputRef.current?.focus(); - }} - > - - - )} @@ -580,13 +582,44 @@ const ExpenseGroupTotals = memo(function ExpenseGroupTotals({ focused={isEditing} inputRef={inputRef} rightContent={ - + <> + + {tooltip.isOpen && ( + { + tooltip.close(); + inputRef.current?.focus(); + }} + > + + + )} + } style={{ width: '100%' }} placeholder="Category Group Name" @@ -599,35 +632,6 @@ const ExpenseGroupTotals = memo(function ExpenseGroupTotals({ } }} /> - {tooltip.isOpen && ( - { - tooltip.close(); - inputRef.current?.focus(); - }} - > - - - )} @@ -832,13 +836,44 @@ const IncomeGroupTotals = memo(function IncomeGroupTotals({ focused={isEditing} inputRef={inputRef} rightContent={ - + <> + + {tooltip.isOpen && ( + { + tooltip.close(); + inputRef.current?.focus(); + }} + > + + + )} + } style={{ width: '100%' }} placeholder="Category Group Name" @@ -851,39 +886,16 @@ const IncomeGroupTotals = memo(function IncomeGroupTotals({ } }} /> - {tooltip.isOpen && ( - { - tooltip.close(); - inputRef.current?.focus(); - }} - > - - - )} onEdit?.(group.id)} > {budget && ( @@ -1023,13 +1036,40 @@ const IncomeCategory = memo(function IncomeCategory({ focused={isEditing} inputRef={inputRef} rightContent={ - + <> + + {tooltip.isOpen && ( + { + tooltip.close(); + inputRef.current?.focus(); + }} + > + + + )} + } style={{ width: '100%' }} placeholder="Category Name" @@ -1042,35 +1082,16 @@ const IncomeCategory = memo(function IncomeCategory({ } }} /> - {tooltip.isOpen && ( - { - tooltip.close(); - inputRef.current?.focus(); - }} - > - - - )} onEdit?.(category.id)} > {!editMode ? ( - {tooltip.isOpen && ( )} - - + ) : (