From ea5388d28117697ea1a7bc79aacbbb173c1089a3 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Thu, 24 Mar 2022 03:36:50 +0000 Subject: [PATCH] Show follower information, make right sidebar larger FossilOrigin-Name: 9e162f852582486f630c51788ba26e811640d274c1a74b8bdb923e13e79d0eb2 --- dist/treebird20.css | 19 ++++++++++++------- src/notifications.c | 4 ++++ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/dist/treebird20.css b/dist/treebird20.css index 79d581b..a683827 100644 --- a/dist/treebird20.css +++ b/dist/treebird20.css @@ -93,9 +93,9 @@ table.ui-table td #main { - width: 640px; - max-width: 640px !important; - min-width: 640px; + width: 610px; + max-width: 610px !important; + min-width: 610px; border-collapse: collapse !important; padding: 0; } @@ -131,6 +131,15 @@ table.ui-table td list-style-type: none; } + +#rightbar +{ + border-left: 1px solid #cacaca; + min-width: 210px; + max-width: 210px; +} + + /************************************************* * COMMON ELEMENTS * *************************************************/ @@ -200,10 +209,6 @@ ul li:first-child a.sidebarbtn border-top: 1px solid #dadada; } -#rightbar -{ - border-left: 1px solid #cacaca; -} /**************************** * Notifications * diff --git a/src/notifications.c b/src/notifications.c index 9d721cc..8e5ae03 100644 --- a/src/notifications.c +++ b/src/notifications.c @@ -67,7 +67,11 @@ char* construct_notification_compact(struct mstdnt_notification* notif, int* siz notif->account->avatar, notif->account->display_name, type_str, + /* Might show follower address */ + notif->type == MSTDNT_NOTIFICATION_FOLLOW ? + notif->account->acct : notif->status ? notif->status->content : "", + /* end */ notif_stats ? notif_stats : ""); if (size) *size = s;