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: content shifting when the copy button appears on mobile #236

Merged
merged 3 commits into from
May 4, 2024

Conversation

DarthGigi
Copy link
Contributor

Same issue as #235, but on mobile and slightly different:

Screenshot.2024-05-01.at.11.13.54.mp4

The problem is that the title gets wrapped because of the share button being added and the GitHub button taking a lot of space.

An easy fix is to just hide the text and numbers on small screens, however, that will cause the GitHub button to look off next to the share button:
Screenshot 2024-05-01 at 11  17 07@2x

To fix this, I set the horizontal padding and the size of the icon to the same values as the share button:
Screenshot 2024-05-01 at 11  19 31@2x

As you can see, the shifting is gone after these changes:

Screenshot.2024-05-01.at.11.20.19.mp4

@matschik matschik merged commit 5c50eec into matschik:main May 4, 2024
1 check passed
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

2 participants