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

Fix #12944 regressions #12961

Merged
merged 1 commit into from
Jan 28, 2020
Merged

Fix #12944 regressions #12961

merged 1 commit into from
Jan 28, 2020

Conversation

brawaru
Copy link
Contributor

@brawaru brawaru commented Jan 26, 2020

Fix regressions caused by #12961

This commit attempts to fix most of regressions caused by #12961pull request which added even spread of space between tabs. The following fixes were done:

  • Don't hide overflow in tabs

    As tabs use ::after and ::before pseudo-elements to create arrow on the bottom of selected tab, overflow: hidden will cause this arrow to look split from the bottom container.

    For the future we probably should use slider element instead, which would align according to currently selected tab, instead of relying on pseudo-elements. Such method would also allow smooth transitions.

  • Disallow wrapping tab text on insufficient space

    This would fix some unwanted behavior[1] when on insufficient width, renderer might attempt wrapping text to not overtake others' space.

@brawaru
Copy link
Contributor Author

brawaru commented Jan 26, 2020

@Gargron can you test if this fixes all the issues, so I can squash? 👀

This commit attempts to fix most of regressions caused by #12961
pull request which added even spread of space between tabs.

The following fixes were done:

- Don't hide overflow in tabs

   As tabs use ::after and ::before pseudo-elements to create arrow on
   the bottom of selected tab, "overflow: hidden" will cause this arrow
   to look split from the bottom container.

   For the future we probably should use slider element instead, which
   would align according to currently selected tab, instead of relying
   on pseudo-elements. Such method would also allow smooth transitions.

- Disallow wrapping tab text on insufficient space

   This would fix some unwanted behavior[1] when on insufficient width,
   renderer might attempt wrapping text to not overtake others' space.

   [1]: https://mastodon.social/@Gargron/103546083813829165
@brawaru brawaru marked this pull request as ready for review January 27, 2020 11:17
@Gargron Gargron merged commit 0445968 into mastodon:master Jan 28, 2020
@brawaru brawaru deleted the fix/12944-regressions branch April 2, 2020 22:18
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.

None yet

3 participants