-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Remove newline to show FB and Twitter buttons on same line #4821 #4867
Remove newline to show FB and Twitter buttons on same line #4821 #4867
Conversation
…4821 Removing <br> tag was not simply enough, since facebook button root node is a div with display block. I am not that happy with this solution, because it relies on how Facebook renders its button, which can change at any time. Other solution I came up with was adding float:left and margin-right to twitter button, then it does not matter that Facebook button is block element, but still it relies on how twitter's script renders its button in iframe. Last solution I came up, but could not make work was wrapping both of them in divs and then position them based on our containers div with no regard what is inside.
Hi @publiclab/reviewers |
Generated by 🚫 Danger |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please provide a GIF showing the status of buttons on different screen widths? Thanks!
Typo, closing tag. Co-Authored-By: swiatek7 <swiatek7@gmail.com>
I want to claim this. |
Done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @swiatek7 🎉
Merged 💯 👍 🎈 🎉 ! Hey @swiatek7, thanks for nice work. We would love to have more help from you. If you are interested in solving more issues then check here - https://code.publiclab.org/#r=all for a new issue. In case, you are unable to find an issue, feel free to comment here. Thanks! |
Hey @meet2410shah, please check other issues as this one is complete. Thanks! |
Thanks @gauravano :) |
…4821 (publiclab#4867) * Remove newline to show FB and Twitter buttons on same line publiclab#4821 Removing <br> tag was not simply enough, since facebook button root node is a div with display block. I am not that happy with this solution, because it relies on how Facebook renders its button, which can change at any time. Other solution I came up with was adding float:left and margin-right to twitter button, then it does not matter that Facebook button is block element, but still it relies on how twitter's script renders its button in iframe. Last solution I came up, but could not make work was wrapping both of them in divs and then position them based on our containers div with no regard what is inside. * Change solution to indepent of internals of social media buttons * Update app/views/sidebar/_dashboard.html.erb Typo, closing tag. Co-Authored-By: swiatek7 <swiatek7@gmail.com>
…4821 (publiclab#4867) * Remove newline to show FB and Twitter buttons on same line publiclab#4821 Removing <br> tag was not simply enough, since facebook button root node is a div with display block. I am not that happy with this solution, because it relies on how Facebook renders its button, which can change at any time. Other solution I came up with was adding float:left and margin-right to twitter button, then it does not matter that Facebook button is block element, but still it relies on how twitter's script renders its button in iframe. Last solution I came up, but could not make work was wrapping both of them in divs and then position them based on our containers div with no regard what is inside. * Change solution to indepent of internals of social media buttons * Update app/views/sidebar/_dashboard.html.erb Typo, closing tag. Co-Authored-By: swiatek7 <swiatek7@gmail.com>
Fixes #4821
rake test
@publiclab/reviewers
for help, in a comment belowRemoving <br> tag was not simply enough, since facebook button root node is a div with display block.I am not that happy with this solution, because it relies on how Facebook renders its button, which can change at any time.
Other solution I came up with was adding float:left and margin-right to twitter button, then it does not matter that Facebook button is block element, but still it relies on how twitter's script renders its button in iframe.
Last solution I came up, but could not make work was wrapping both of them in divs and then position them based on our containers div with no regard what is inside.
I have managed to implement this feature with wrapping both buttons in divs. Not it is independent from the way twitter or facebook renders its buttons.