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

Update social-share.html #1357

Merged
merged 1 commit into from
Nov 20, 2017
Merged

Update social-share.html #1357

merged 1 commit into from
Nov 20, 2017

Conversation

DannieBGoode
Copy link
Contributor

This way when clicking on the share on a social networks buttons, a share popup will open instead of forcing the share in the same window.

@mmistakes
Copy link
Owner

What's the experience like on mobile? I see you have hardcoded widths in there at 500px. Will that force the main container to push out and mess up the layout?

@DannieBGoode
Copy link
Contributor Author

DannieBGoode commented Nov 16, 2017

The width and the height are set as initial values, but the popup adjusts itself to the size needed by the content it hosts. No layouts are messed up.

The experience on mobile is x100 times better. Allow me to explain:

  • Right now in the official mm master branch when you try to share, you are redirected to facebook and lose the blog. When you complete the share you are left on a blank window (just tested it) and you need to click on the BACK button until you are back again at the blog.
  • With my fix, a new tab opens on top of the one containing the web with the share options, once you finish the share this window closes itself and you find yourself again at the blog (which was in the tab underneath).

I suggest you test it out yourself, if you see anything wrong i'll have a look.

@mmistakes
Copy link
Owner

Thanks.... looks good!

@mmistakes mmistakes merged commit 696d589 into mmistakes:master Nov 20, 2017
kkunapuli pushed a commit to kkunapuli/kkunapuli.github.io that referenced this pull request May 30, 2019
sumeetmondal pushed a commit to sumeetmondal/sumeetmondal.github.io that referenced this pull request Sep 10, 2019
jchwenger pushed a commit to jchwenger/jchwenger.github.io that referenced this pull request May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants