From ecfa499ff4c37d0b9581cafe6ac39e6dc8daa200 Mon Sep 17 00:00:00 2001 From: Samuel Reis Date: Mon, 20 Sep 2010 22:06:46 +0200 Subject: [PATCH] making the avatar an actual img tag This fixes a bug, where animated gifs were rendered incorrectly. --- TwittiaCore.js | 4 ++-- default.css | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TwittiaCore.js b/TwittiaCore.js index c2b99de..f269134 100644 --- a/TwittiaCore.js +++ b/TwittiaCore.js @@ -56,7 +56,7 @@ Twittia.prototype.getItem = function(status) { template.reply_to.onclick = function() { replyTo(status.user.screen_name, status.id); return false; } template.retweet.onclick = function() { template.retweet.className = "hidden"; _this.retweet(status.id, template.item); return false; } - template.image.style.backgroundImage = "url(" + status.user.profile_image_url + ")"; + template.image.src = status.user.profile_image_url; template.username.innerText = status.user.screen_name; template.username.href = "http://twitter.com/" + status.user.screen_name @@ -116,7 +116,7 @@ Twittia.prototype.getTemplate = function() { item.appendChild(retweet); - var image = document.createElement("div"); + var image = document.createElement("img"); image.className = "image"; item.appendChild(image); diff --git a/default.css b/default.css index fc2352e..db2be41 100644 --- a/default.css +++ b/default.css @@ -86,8 +86,6 @@ p { margin-left: 2px; width: 48px; height: 48px; - background: top left no-repeat; - background-clip: content-box; border: 0px solid #f00; -webkit-border-radius: 8px; }