Skip to content

Instantly share code, notes, and snippets.

@sankalpsans
Last active May 21, 2016 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sankalpsans/4d906a941a63a17f0cb809893550ae97 to your computer and use it in GitHub Desktop.
Save sankalpsans/4d906a941a63a17f0cb809893550ae97 to your computer and use it in GitHub Desktop.
Teeny Tiny hacks on the Web Frontend
# Embedded Tweet render issue after their switch to Shadow DOMs#
Twitter recently changed their embedded tweet rendering to Shadow DOMs (I think this is what cause the issue to surface) and tweets embedded on various places started to break https://twitter.com/sankalp_sans/status/733911277085462529
Just adding the following 2 lines fixed it for me.
```
.twitter-tweet::shadow(.EmbeddedTweet){ float:left!important; }
.twitter-tweet::shadow .EmbeddedTweet{ float:left !important; }
```
As per what I read of the implementation, the first line should have done it alone, but did not, in some of the cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment