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

Fixed Social media sharing pills misaligned in sidebar and aligned social buttons in a row #8525

Merged
merged 1 commit into from
Oct 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions app/views/home/_social.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="social" style="clear:both;margin-top:10px;">
<div id="social" style="clear:both;margin-top:10px;display:flex;">
<% if Rails.env == "production" %>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="50" data-show-faces="false" style="vertical-align: middle; bottom: 6px;margin-right:10px" ></div>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="50" data-show-faces="false" style="display:flex;margin-right:10px;" ></div>

<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
Expand All @@ -10,7 +10,7 @@
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-share-button" style="vertical-align: middle; bottom: 6px;margin-right:10px"
<div class="fb-share-button" style="display:flex;margin-right:10px;"
data-layout="button"
data-size="small" data-mobile-iframe="true"><a target="_blank"
href="https://www.facebook.com/sharer"
Expand All @@ -25,6 +25,5 @@
<style>
.tweet{
position: relative;
vertical-align: middle;
}
</style>