-
Notifications
You must be signed in to change notification settings - Fork 310
RecentDmConversationsPage: Breaks with nonzero horizontal device insets #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Labeling "a-design" because I'm not sure how best to handle device insets for screen content like this. cc @alya @terpimost I see basically two approaches to solve this. (In these screenshots I'm also long-pressing a row, and it still shows the not-yet-merged unread counts from #334.)
![]() ![]()
![]() ![]() |
A note about the screenshots in my previous message. On the side opposite the iPhone's black oval (for the camera), there's maybe more space than seems necessary: it looks like we reserve approximately the width needed for another camera notch, even though there isn't one on that side. But that's just what happens when we faithfully follow the measurements iOS gives us for the horizontal insets, and you'll commonly see a similar effect in other apps. |
Good question. My inclination would be for option 2. Is there another app or two where you can conveniently provoke the same situation and see how they handle it? |
Gmail on iPhone is mixed; here are some screenshots. Unfortunately you'll have to imagine my phone's rounded corners and the camera notch, which don't show up in its take-a-screenshot feature. This is on my iPhone 13 Pro. They do option 1: They do option 2: And they do a better (I think) version of option 2 where the area covered by the ink effect is also visible when you're not pressing a row, as a nice surface with rounded corners: |
Cool, thanks. I guess those are inconclusive, then, and I'd still incline toward option 2 pending input from @terpimost.
I think this works well in that settings screen, where there's several sections and they each have a heading above them. On this screen, though, I think the rounded effect would look odd at the top and bottom of the list. |
In my design buttons have rounding corners, and there is always a gap between edge of a screen, so in cases when you have safe area it shouldn't be a problem... I do suggest to don't support landscape mode. I don't assume we have material UI components and their tap animations... I suggest to not bring it to iOS version at least. |
Cool, I've filed #417 for that. I've milestoned it for Beta 3, i.e. for the first beta that goes to a wider audience beyond chat.zulip.org.
(This now has a chat thread, following discussion on the PR #413.) |
Uh oh!
There was an error while loading. Please reload this page.
Such as on an iPhone 15 Pro in landscape mode. Seen here in a simulator, with the not-yet-merged unread counts from #334. I'm long-pressing to show how the row responds:
The text was updated successfully, but these errors were encountered: