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 buttons intersecting on Subscribed Channels tab #4058

Merged

Conversation

kommunarr
Copy link
Collaborator

Fix buttons intersecting on Subscribed Channels tab

Pull Request Type

  • Bugfix

Related issue

None

Description

Fixes buttons on the Subscribed Channels tab intersecting in many languages. In all languages where this issue occurs, there are multiple words in the Unsubscribe button label text, which causes the buttons to intersect. This change has the words wrap in such cases and updates the default behavior for all ft-subscribe-buttons for future-proofing. As a result, this wrapping behavior goes into effect on other instances of ft-subscribe-button when the button would otherwise overflow to outside of the container (e.g., the subscribe button on the Channel page on very small viewport widths), but this is desired behavior in those cases.

Screenshots

Before:
Screenshot_20230918_182239

After:
Screenshot_20230918_182221

Testing

  1. Change locale to a language with multiple words in the "Unsubsribe" button label text (e.g., Svenska / Swedish)
  2. Navigate to Channels tab
  3. See normal behavior

Desktop

  • OS: OpenSUSE Tumbleweed
  • OS Version: 2023xxxx
  • FreeTube version: 0.19.0

Note that this can still occur if one of the words in 'Unsubscribe' is pretty big on smaller screen sizes, e.g., Svenska at 515px. This is because we allow the Unsubscribe button to be wider than the element itself, which is hard to change here without completely reworking the structure using  (due to limitations with minmax being unable to have fit-content in a grid definition).
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 18, 2023
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) September 18, 2023 23:48
Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

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

Tested with changing the text manually
image

Suggested a comment for the selector

@FreeTubeBot FreeTubeBot merged commit 9d80737 into FreeTubeApp:development Sep 20, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 20, 2023
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.

5 participants