From d2174c0b69519d7788966c8f1f1b02ca1903c291 Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Tue, 13 Feb 2018 15:59:21 +0100
Subject: [PATCH] Fix misaligned avatars in activity columns

---
 Resources/Scripts/code.js            | 2 +-
 Resources/Scripts/styles/browser.css | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js
index 96efdeb7..58937e46 100644
--- a/Resources/Scripts/code.js
+++ b/Resources/Scripts/code.js
@@ -199,7 +199,7 @@
           html.find(".js-user-actions-menu").parent().remove();
           html.find(".account-bio").removeClass("padding-t--5").css("padding-top", "2px");
         }
-        else if (type.startsWith("favorite") || type.startsWith("retweet")){
+        else if ((type.startsWith("favorite") || type.startsWith("retweet")) && tweet.isAboutYou()){
           html.children().first().addClass("td-notification-padded");
         }
         else if (type.includes("list_member")){
diff --git a/Resources/Scripts/styles/browser.css b/Resources/Scripts/styles/browser.css
index 8acb94e9..95d246b3 100644
--- a/Resources/Scripts/styles/browser.css
+++ b/Resources/Scripts/styles/browser.css
@@ -118,19 +118,19 @@ html[data-td-theme='dark'] .stream-item:not(:hover) .js-user-actions-menu {
   opacity: 0.25;
 }
 
-.stream-item[data-key^="favorite"] .item-img, .stream-item[data-key^="retweet"] .item-img {
+.stream-item[data-key^="favorite"] .has-source-avatar .item-img, .stream-item[data-key^="retweet"] .has-source-avatar .item-img {
   position: absolute;
   left: 21px;
   top: 48px;
   width: 0 !important;
 }
 
-.stream-item[data-key^="favorite"] .activity-header > .nbfc, .stream-item[data-key^="retweet"] .activity-header > .nbfc {
+.stream-item[data-key^="favorite"] .has-source-avatar > .nbfc, .stream-item[data-key^="retweet"] .has-source-avatar > .nbfc {
   margin-left: 46px;
   line-height: unset !important;
 }
 
-.stream-item[data-key^="favorite"] .activity-header > .nbfc > .avatar, .stream-item[data-key^="retweet"] .activity-header > .nbfc > .avatar {
+.stream-item[data-key^="favorite"] .has-source-avatar > .nbfc > .avatar, .stream-item[data-key^="retweet"] .has-source-avatar > .nbfc > .avatar {
   position: absolute;
   margin-left: -34px;
 }