1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-11 03:15:44 +02:00

Tweak appearance of list-related notifications

This commit is contained in:
chylex 2018-07-31 02:33:51 +02:00
parent e874e1d798
commit c11b40b94a
3 changed files with 39 additions and 3 deletions
Resources/Scripts

View File

@ -280,6 +280,7 @@
html.children().first().addClass("td-notification-padded");
}
else if (type.includes("list_member")){
html.children().first().addClass("td-notification-padded td-notification-padded-alt");
html.find(".activity-header").css("margin-top", "2px");
html.find(".avatar").first().css("margin-bottom", "0");
}

View File

@ -174,23 +174,46 @@ html[data-td-theme='dark'] .stream-item:not(:hover) .js-user-actions-menu {
opacity: 0.25;
}
.stream-item[data-key^="favorite"] .has-source-avatar .item-img, .stream-item[data-key^="retweet"] .has-source-avatar .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"] .has-source-avatar > .nbfc, .stream-item[data-key^="retweet"] .has-source-avatar > .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"] .has-source-avatar > .nbfc > .avatar, .stream-item[data-key^="retweet"] .has-source-avatar > .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;
}
.stream-item[data-key^="list_"] .activity-header .item-img {
position: relative;
left: 10px;
top: 2px;
width: 0 !important;
}
.stream-item[data-key^="list_"] .activity-header > .nbfc {
margin-left: 46px;
padding-bottom: 0 !important;
min-height: 30px !important;
line-height: unset !important;
}
.stream-item[data-key^="list_"] .activity-header > .nbfc > .avatar {
position: absolute;
margin-left: -34px;
padding-top: 1px;
}
/***********************/
/* Tweaks for features */
/***********************/

View File

@ -122,6 +122,18 @@ html[data-td-font='smallest'] .fullname-badged:before, html[data-td-font='small'
margin-left: -34px;
}
.td-notification-padded-alt .item-img {
/* td-notification-padded-alt is used alongside td-notification-padded to save space in the file */
position: relative;
left: 10px;
top: 2px;
width: 0 !important;
}
.td-notification-padded-alt .activity-header > .nbfc > .avatar {
padding-top: 1px;
}
/*********/
/* Media */
/*********/