Skip to content

Add iPad support with a two-column Account screen - #244

Open
shanesmithdev wants to merge 17 commits into
NativePHP:mainfrom
shanesmithdev:ipad-support
Open

shanesmithdev wants to merge 17 commits into
NativePHP:mainfrom
shanesmithdev:ipad-support

Conversation

@shanesmithdev

@shanesmithdev shanesmithdev commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Turns on iPad support and gives the Account screen a two-column layout on wide iOS windows, like Settings on an iPad. On the left is a sidebar of sections. The one you pick opens beside it.

  • When it splits: on an iPad in portrait and landscape, an unfolded iPhone Duo in landscape (split at the hinge), and the Plus and Pro Max iPhones in landscape. Everywhere else, including every phone in portrait and all of Android, Account stays the long scroll it is today.
  • The sidebar: Profile, Timezone, Features (Pastéis mode, Remotes, Who to follow), Notifications, Safety and Devices, then Terms and privacy, Delete account and Sign out set apart. Safety opens the muted and blocked lists directly. Sign out asks to confirm, as its button does.
  • How it's built: the local adaptive-layout package, which already splits the Log, Notifications and Remotes, gains a split rule that includes iPad portrait, a sidebar width, a view to show on one column, and a back chevron for a host pushed onto a stack. The Log, Notifications and Remotes keep their current rule and even split.
  • Account's sections: each is a partial now, shared by the long scroll and the pane.
  • Wording: Account says "device" instead of "phone" ("This device", "Use … from this device"), as it can now run on an iPad.
  • Profile on iPad: your own Profile puts Scheduled commits, Starred, Share profile and Account in one ⋯. In portrait, iPadOS folded the three bar buttons into its own overflow, which put Account in a menu inside a menu.

Account in two columns on an iPad and an unfolded iPhone Duo

Review

An independent review of the whole branch found one important issue and five minor ones:

  • Fixed: the back swipe from Account in two columns could stop working after a swipe let go of halfway, or a switch to another tab and back. Checked on an iPad in both orientations.
  • Fixed: the Sign out confirmation still said "phone".
  • Fixed: Account drew one frame of the long scroll on an iPad before it went wide.
  • Fixed: Account opened on Notifications if it went wide before your profile loaded.
  • Fixed: with Safety open, the sidebar and the Safety pane both had the error and refresh-failed refs.
  • Checked: on an iPhone in portrait, the long scroll now sits inside the two-column host. Tap-to-top and the keyboard on the timezone search still work.

The full test suite passes.

Screenshots

Account on iPad

Notice how Account fills the iPad as a sidebar with the section you pick beside it, in both orientations. Before, the iPad showed the iPhone app scaled up on black.

Before After
Portrait
Landscape

The sidebar's sections

After: Features groups the switches that turn a feature on or off, Safety shows the muted and blocked lists straight away, and Devices holds Apple ID and this device's key.

Features Safety Devices

Account on an unfolded iPhone Duo, landscape

Notice how the columns part at the hinge.

Before After
iOS

Your Profile on iPad, portrait

Notice how, once the app runs full screen on an iPad, Account is one tap into the ⋯. Before, the iPad ran the iPhone app, with three bar buttons. Turning on iPad support without this change made iPadOS fold those buttons into its own "…" menu, with the ⋯ nested inside it.

Before After

Account on phones

Notice that phones keep the long scroll, unchanged.

Before After
iOS
Android

@shanesmithdev
shanesmithdev marked this pull request as ready for review December 1, 2026 08:58
@shanesmithdev
shanesmithdev marked this pull request as draft December 1, 2026 09:04
@shanesmithdev
shanesmithdev marked this pull request as ready for review December 1, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant