fix: Add gap between filter/create button on mobile settings pages (#115)

## Summary

- Added `gap-4` to the flex containers holding the filter input and
create button on the accounts, categories, labels, and connections
settings pages
- Without the gap, these elements had no spacing on mobile viewports and
appeared cramped
- The automation rules page already had `gap-4` — this makes all
settings pages consistent

## Screenshots (mobile 375px)

### Accounts

![Accounts](https://raw.githubusercontent.com/whisper-money/whisper-money/fix/settings-mobile-button-gap/screenshots/settings-accounts-mobile.png)

### Categories

![Categories](https://raw.githubusercontent.com/whisper-money/whisper-money/fix/settings-mobile-button-gap/screenshots/settings-categories-mobile.png)

### Labels

![Labels](https://raw.githubusercontent.com/whisper-money/whisper-money/fix/settings-mobile-button-gap/screenshots/settings-labels-mobile.png)

### Connections

![Connections](https://raw.githubusercontent.com/whisper-money/whisper-money/fix/settings-mobile-button-gap/screenshots/settings-connections-mobile.png)

## Test plan
- [x] Verify gap appears between filter input and create button on
mobile for accounts, categories, labels, and connections settings pages
- [x] Verify desktop layout is unaffected
This commit is contained in:
Víctor Falcón 2026-02-12 20:50:05 +01:00 committed by GitHub
parent 8ce0adf8ae
commit 726bce61ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 4 additions and 4 deletions

View File

@ -314,7 +314,7 @@ export default function Accounts({ accounts }: AccountsPageProps) {
/>
<div className="space-y-4">
<div className="flex items-center justify-between">
<div className="flex items-center justify-between gap-4">
<Input
placeholder={__('Filter accounts...')}
value={

View File

@ -294,7 +294,7 @@ export default function Categories() {
/>
<div className="space-y-4">
<div className="flex items-center justify-between">
<div className="flex items-center justify-between gap-4">
<Input
placeholder={__('Filter categories...')}
value={

View File

@ -82,7 +82,7 @@ export default function ConnectionsPage({ connections }: Props) {
<SettingsLayout>
<div className="space-y-6">
<div className="flex items-center justify-between">
<div className="flex items-center justify-between gap-4">
<div>
<h3 className="text-lg font-medium">
{__('Bank Connections')}

View File

@ -252,7 +252,7 @@ export default function Labels() {
/>
<div className="space-y-4">
<div className="flex items-center justify-between">
<div className="flex items-center justify-between gap-4">
<Input
placeholder={__('Filter labels...')}
value={

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB