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

Minor refinements to codesnippet #195

Merged
merged 3 commits into from
Aug 10, 2020
Merged

Minor refinements to codesnippet #195

merged 3 commits into from
Aug 10, 2020

Conversation

domyen
Copy link
Member

@domyen domyen commented Aug 10, 2020

No description provided.

@domyen domyen requested a review from kylesuss August 10, 2020 17:07
@domyen domyen added the enhancement New feature or request label Aug 10, 2020
padding: 15px 1rem;
padding-right: 5rem;
padding: 1em 1em 1.5em;
padding-right: 2em;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The point of this was to make it so that you could scroll all the way right & not have the "Copy" button overlaying any of the code. So long as you are aware that removing this will break that, I am ok w/ it. Maybe the argument is that you can see it when you are scrolled left?

Copy link
Member Author

Choose a reason for hiding this comment

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

The internal padding shouldn't trigger the scrollbar unnecessarily.

afaict the scrollbar appears below the content so it doesn't affect the content or the copy functionality.

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

The internal padding shouldn't trigger the scrollbar unnecessarily.

That's fair, though it has the potential to overlap slightly:
Screen Shot 2020-08-10 at 11 24 20 AM

Copy link
Member Author

Choose a reason for hiding this comment

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

I can live with this 👍
image

Copy link
Collaborator

@kylesuss kylesuss left a comment

Choose a reason for hiding this comment

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

Merge when ready 👌

@domyen domyen merged commit d62f9bb into master Aug 10, 2020
@domyen domyen deleted the codesnippet-refinement branch August 10, 2020 18:03
@kylesuss
Copy link
Collaborator

🚀 PR was released in v5.1.19 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants