Skip to content
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

Make the pager take full width #7066

Merged
merged 5 commits into from
Dec 12, 2024
Merged

Make the pager take full width #7066

merged 5 commits into from
Dec 12, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Dec 12, 2024

This changes the pager to always fill the entire screen width by spacing out the items. If there are many items (more than a screen's worth), then they are placed like before.

Easier to understand from a demo:

ios.mov

Test Plan

Try these on iOS, Android, and web.

  • Check Home the new user experience (Discover, Following)
  • Check Home for a user with a lot of feeds
  • Check profile tabs (own and others')
  • Check hashtag and search screens
  • Try it on top of [Notifications] Add a Mentions tab #7044

Centered item looks a bit weird when there's a single tab but the only case of that is being solved by #7056.

@arcalinea arcalinea temporarily deployed to wide-tabs - social-app PR #7066 December 12, 2024 03:05 — with Render Destroyed
Copy link

Old size New size Diff
6.77 MB 6.77 MB 285 B (0.00%)

Copy link
Member

@mozzius mozzius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, in stylistic terms I think making the blue indicator a little bit wider than the text would be nice

@gaearon
Copy link
Collaborator Author

gaearon commented Dec 12, 2024

I'll get this in as is but can iterate

@gaearon gaearon merged commit 8816692 into main Dec 12, 2024
6 checks passed
@gaearon gaearon deleted the wide-tabs branch December 12, 2024 15:35
@auroursa
Copy link
Contributor

It’s possible that the shorter length of Chinese text caused the strange width gap that appeared after this PR. Sorry for the Chinese in the screenshot, but I wanted to more cleared show this change.

Before After

@gaearon
Copy link
Collaborator Author

gaearon commented Dec 13, 2024

Would it be desirable to remove the minimum width for Chinese characters?

@auroursa
Copy link
Contributor

Worth a try, this should not cause any other issues. It seems that Korean and Hindi also have the same issue, as their words are quite short. Perhaps we should reconsider the minimum width for this layout?

@gaearon
Copy link
Collaborator Author

gaearon commented Dec 13, 2024

Maybe instead of minimum width we could do something else in styling? The intention is to avoid the line being too short when it’s just a few items, like “All” and “Mentions” making “All” very short.

@gaearon
Copy link
Collaborator Author

gaearon commented Dec 13, 2024

Fixed in #7095

Signez pushed a commit to Signez/bsky-social-app that referenced this pull request Dec 26, 2024
* Wide tabs for web

* Wide tabs on mobile

* Tweak min for profile

* Driveby border fix

* Fix single tab indicator
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.

4 participants