From 0504203df1153416472321cd32955a66c5ce7647 Mon Sep 17 00:00:00 2001 From: nekobit Date: Sat, 13 Aug 2022 06:55:22 +0000 Subject: [PATCH] Fix notification read all FossilOrigin-Name: e2f99021b7def56f6fbe347ecec3c1b5310d4b36c09261298054b462499e591c --- dist/treebird.css | 10 ++++++++++ src/notifications.c | 3 ++- templates/content_notifs.tt | 5 ++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dist/treebird.css b/dist/treebird.css index c94d4cb..bdb1a09 100644 --- a/dist/treebird.css +++ b/dist/treebird.css @@ -32,6 +32,11 @@ body height: 100%; } +form +{ + display: inline; +} + /* Basic elements */ h1, h2, h3, h4 { @@ -853,6 +858,7 @@ input[type=checkbox].hidden:not(:checked) + .reply-form { content:""; position: absolute; + z-index: 0; top: 0px; left: 0px; width: 15px; @@ -864,6 +870,7 @@ input[type=checkbox].hidden:not(:checked) + .reply-form { content:""; position: absolute; + z-index: 0; top: 0px; left: 0px; width: 65px; @@ -971,9 +978,11 @@ input[type=checkbox].hidden:not(:checked) + .reply-form .pfp-td { + position: relative; width: 52px; border-collapse: collapse !important; padding: 6px; + z-index: 1; } .pfp-td img @@ -982,6 +991,7 @@ input[type=checkbox].hidden:not(:checked) + .reply-form width: 52px; height: 52px; object-fit: cover; + z-index: 1; } .status table tr diff --git a/src/notifications.c b/src/notifications.c index ca5915c..79a1429 100644 --- a/src/notifications.c +++ b/src/notifications.c @@ -365,7 +365,8 @@ void content_notifications_read(PATH_ARGS) mastodont_notifications_read(api, &m_args, &args, &storage, NULL); } else { - mastodont_notifications_read(api, &m_args, NULL, &storage, NULL); + struct mstdnt_notifications_args args = { .max_id = keystr(ssn->post.max_id) }; + mastodont_notifications_read(api, &m_args, &args, &storage, NULL); } mastodont_storage_cleanup(&storage); diff --git a/templates/content_notifs.tt b/templates/content_notifs.tt index 8b9797f..9e7b2bd 100644 --- a/templates/content_notifs.tt +++ b/templates/content_notifs.tt @@ -3,7 +3,10 @@