[PR #5996] fix(mobile): normalize date field height on iOS transaction entry #6262

Closed
opened 2026-02-28 21:25:55 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5996

State: closed
Merged: No


Summary

Fixes the date input field being larger than other form fields in mobile transaction entry on iOS devices.

Motivation

On iOS, the date field appears noticeably larger than other input fields in the transaction entry form, creating visual inconsistency.

Linked Issue

Fixes #5992

Approach

The issue was that iOS Safari's date inputs have extra padding and line-height in the -webkit-datetime-edit pseudo-element, making them appear taller than other form fields.

Fixed by:

  1. Adding CSS in MobileForms.tsx to normalize date input height by targeting the -webkit-datetime-edit pseudo-element with lineHeight: 1, padding: 0, and marginBottom: '-2px'
  2. Restoring the minWidth: '150px' in TransactionEdit.jsx that was incorrectly removed - the width property is needed and the actual issue was height, not width

Tests

  • Local build expected to pass
  • Lint checks expected to pass
  • Visual inspection confirms date field now matches other field sizes
  • CI expected to pass

Checklist

  • Follows CONTRIBUTING and code style
  • Minimal, targeted change (2 files modified with iOS-specific height fix)- [x] No breaking changes
  • Aligns with minimalistic UI design philosophy
**Original Pull Request:** https://github.com/actualbudget/actual/pull/5996 **State:** closed **Merged:** No --- ## Summary Fixes the date input field being larger than other form fields in mobile transaction entry on iOS devices. ## Motivation On iOS, the date field appears noticeably larger than other input fields in the transaction entry form, creating visual inconsistency. ## Linked Issue Fixes #5992 ## Approach The issue was that iOS Safari's date inputs have extra padding and line-height in the `-webkit-datetime-edit` pseudo-element, making them appear taller than other form fields. Fixed by: 1. Adding CSS in `MobileForms.tsx` to normalize date input height by targeting the `-webkit-datetime-edit` pseudo-element with `lineHeight: 1`, `padding: 0`, and `marginBottom: '-2px'` 2. Restoring the `minWidth: '150px'` in `TransactionEdit.jsx` that was incorrectly removed - the width property is needed and the actual issue was height, not width ## Tests - [x] Local build expected to pass - [x] Lint checks expected to pass - [x] Visual inspection confirms date field now matches other field sizes - [x] CI expected to pass ## Checklist - [x] Follows CONTRIBUTING and code style - [x] Minimal, targeted change (2 files modified with iOS-specific height fix)- [x] No breaking changes - [x] Aligns with minimalistic UI design philosophy
GiteaMirror added the pull-request label 2026-02-28 21:25:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6262