diff --git a/dist/treebird.css b/dist/treebird.css index ff3d8bb..ea7b454 100644 --- a/dist/treebird.css +++ b/dist/treebird.css @@ -471,6 +471,7 @@ table.present th, table.present td padding: 3px 12px; width: 100%; border: 0; + font-size: 14px; cursor: pointer; text-align: left; box-sizing: border-box; @@ -1025,8 +1026,7 @@ input[type=checkbox].hidden:not(:checked) + .reply-form .notification-content { position: relative; - min-width: 0; - width: auto; + width: 100%; padding: 0 0 0 10px; } @@ -1061,15 +1061,12 @@ input[type=checkbox].hidden:not(:checked) + .reply-form .status .poster-stats { - position: relative; display: block; - max-width: 490px; } -.status-hide:checked + .status .poster-stats -{ - max-width: 550px; -} +/* .status-hide:checked + .status .poster-stats */ +/* { */ +/* } */ .poster-stats .alignend { @@ -1107,7 +1104,6 @@ input[type=checkbox].hidden:not(:checked) + .reply-form { margin: 4px 0 0 0; overflow-wrap: anywhere; - width: 490px; line-height: 1.2; display: block; } @@ -2211,6 +2207,12 @@ input[type=checkbox].hidden:not(:checked) + .list-edit-content padding: 4px 0 4px 0; } +.menu ul + ul +{ + border-top: 2px solid #cacaca; +} + + .menu ul li { list-style-type: none; diff --git a/perl/status.pm b/perl/status.pm index ae2f41e..b1c8178 100644 --- a/perl/status.pm +++ b/perl/status.pm @@ -33,6 +33,7 @@ sub generate_status boost => $boost_acct, # May be undef data => $data, notif => $notif, # May be undef + is_statusey_notif => ($notif && ($notif->{type} eq 'mention' || $notif->{type} eq 'status')), # Functions icon => \&get_icon, lang => \&lang, diff --git a/src/base_page.c b/src/base_page.c index 7780d82..5ff8d29 100644 --- a/src/base_page.c +++ b/src/base_page.c @@ -49,7 +49,7 @@ void render_base_page(struct base_page* page, FCGX_Request* req, struct session* if (keystr(ssn->cookies.logged_in) && keystr(ssn->cookies.access_token) && !ssn->config.notif_embed) { - struct mstdnt_get_notifications_args args = { + struct mstdnt_notifications_args args = { .exclude_types = 0, .account_id = NULL, .exclude_visibilities = 0, diff --git a/src/notifications.c b/src/notifications.c index 0c3bf07..3fe93a5 100644 --- a/src/notifications.c +++ b/src/notifications.c @@ -200,7 +200,7 @@ void content_notifications(PATH_ARGS) struct mstdnt_notification* notifs = NULL; size_t notifs_len = 0; - struct mstdnt_get_notifications_args args = { + struct mstdnt_notifications_args args = { .exclude_types = 0, .account_id = NULL, .exclude_visibilities = 0, @@ -268,7 +268,7 @@ void content_notifications_compact(PATH_ARGS) if (keystr(ssn->cookies.logged_in)) { - struct mstdnt_get_notifications_args args = { + struct mstdnt_notifications_args args = { .exclude_types = 0, .account_id = NULL, .exclude_visibilities = 0, diff --git a/templates/content_notifs.tt b/templates/content_notifs.tt index f120c27..cf710c1 100644 --- a/templates/content_notifs.tt +++ b/templates/content_notifs.tt @@ -1,51 +1,52 @@ -

Notifications

-