1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-20 21:15:48 +02:00

Fix misaligned avatars in activity columns

This commit is contained in:
chylex 2018-02-13 15:59:21 +01:00
parent 9f76754ad3
commit d2174c0b69
2 changed files with 4 additions and 4 deletions
Resources/Scripts

View File

@ -199,7 +199,7 @@
html.find(".js-user-actions-menu").parent().remove(); html.find(".js-user-actions-menu").parent().remove();
html.find(".account-bio").removeClass("padding-t--5").css("padding-top", "2px"); 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"); html.children().first().addClass("td-notification-padded");
} }
else if (type.includes("list_member")){ else if (type.includes("list_member")){

View File

@ -118,19 +118,19 @@ html[data-td-theme='dark'] .stream-item:not(:hover) .js-user-actions-menu {
opacity: 0.25; 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; position: absolute;
left: 21px; left: 21px;
top: 48px; top: 48px;
width: 0 !important; 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; margin-left: 46px;
line-height: unset !important; 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; position: absolute;
margin-left: -34px; margin-left: -34px;
} }