Skip to content

Add mobile-tabs feature - #6725

Merged
fregante merged 17 commits into
mainfrom
mobile-tabs
Jun 17, 2023
Merged

fregante merged 17 commits into
mainfrom
mobile-tabs

Conversation

@fregante

@fregante fregante commented Jun 2, 2023 •

Copy link
Copy Markdown
Member

Test URLs

Here

Screenshot

121495005-89af8600-c9d9-11eb-822d-77e0b987e3b1

@yakov116

yakov116 commented Jun 2, 2023

Copy link
Copy Markdown
Member

I like it!

@fregante

fregante commented Jun 2, 2023 •

Copy link
Copy Markdown
Member Author

I centered the icon/counter. So tough.

  • Flex easily allows this but flex-basis: 100% lengthens the tabs too much (see 111708a).
  • Grid doesn't support this [1], it's only kinda working thanks to 1fr 1fr auto 1fr which appears to collapse the 3rd column if the counter is missing, buuuuut alignment is a pain.
Screenshot

Last:

  • Fix background on light theme
  • Readme/screenshot
Screenshot 6

@fregante

fregante commented Jun 4, 2023

Copy link
Copy Markdown
Member Author

After seeing the last screenshot above, I realized that there's a lot of space and maybe the background isn't necessary (even though it does look nice)

Background

Screenshot 1

No background

Screenshot

Also notice the shortening to "Pulls" like GitHub has done for so long in the old site header

@yakov116

yakov116 commented Jun 4, 2023

Copy link
Copy Markdown
Member

I like with background

@134130

134130 commented Jun 5, 2023

Copy link
Copy Markdown
Contributor

When we use background, we need more width to display them.
So I think we need to find some middle one.
How about chrome's browser tabs UI?
image

Also, I think the font size is too small.
It would be nice to follow the smallest text size on GitHub.
image
On this image, i think "owner"'s font size and "updated 5 days ago" is the good size.

I also think We do not need to show label. The Icons already represent the features.

@fregante

fregante commented Jun 6, 2023

Copy link
Copy Markdown
Member Author

How about chrome's browser tabs UI?

It looks nice but I think that thin line doesn't improve on the background-less style.

Also, I think the font size is too small.

I think the size is fine on the phone, it's only supposed to be a little more helpful.

I also think We do not need to show label

I tried with the icons in #5805 but most icons are not clear. Code, issues, bugs, PRs yes… but actions, wiki, projects not really.

I'll try to restore the background but maybe reduce the spacing to 1px between items. Unfortunately I wasn't able to find a way to reduce the padding in the tabs while keeping the [icon + counter] center-aligned.

@fregante
fregante marked this pull request as draft June 6, 2023 14:09
@fregante

fregante commented Jun 13, 2023 •

Copy link
Copy Markdown
Member Author

Ok, this should be good to go. In each screenshot, the "bugs" tab is being hovered. The difference isn't obvious in screenshots, but it's just enough when hovered "live".

GHE

Screenshot 7 Screenshot 8

GitHub.com

Screenshot 10 Screenshot 6

@fregante
fregante marked this pull request as ready for review June 13, 2023 10:13
@fregante
fregante merged commit c40cb29 into main Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

No-text repo tabs on mobile

3 participants