Skip to content

Commit

Permalink
Center tweet embed (#3029)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoytenko committed Apr 28, 2016
1 parent 46db366 commit dbfff39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 3p/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export function twitter(global, data) {
const tweet = global.document.createElement('div');
tweet.id = 'tweet';
tweet.style.width = '100%';
tweet.style.display = 'flex';
tweet.style.alignItems = 'center';
tweet.style.justifyContent = 'center';
global.document.getElementById('c').appendChild(tweet);
getTwttr(global, function(twttr) {
// Dimensions are given by the parent frame.
Expand Down

0 comments on commit dbfff39

Please sign in to comment.