From 66c27577a4ca766b24c936d1fbbd49e249a8450a Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Mon, 28 Mar 2022 18:37:50 +0000 Subject: [PATCH] Navigation box FossilOrigin-Name: 2849625ba930e407caac5daaed1401bf56ad217fedfda72d5c6dc0d61cde6675 --- dist/treebird20.css | 8 ++------ src/timeline.c | 6 ++++-- static/navigation.html | 29 ++++++++++++++++++++++++++--- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/dist/treebird20.css b/dist/treebird20.css index d878bee..c8a855a 100644 --- a/dist/treebird20.css +++ b/dist/treebird20.css @@ -756,13 +756,9 @@ ul.large-list li a box-shadow: 0px 1px 0px #dadada; } -.navigation tr -{ - padding: 0; -} - -.navigation td +.navigation .nav-btn { + display: block; padding: 8px !important; } diff --git a/src/timeline.c b/src/timeline.c index fc68bc8..85d7197 100644 --- a/src/timeline.c +++ b/src/timeline.c @@ -33,7 +33,7 @@ void tl_public(mastodont_t* api, int local) size_t status_count, statuses_html_count; struct mstdnt_status* statuses; struct mstdnt_storage storage = { 0 }; - char* status_format, *post_box; + char* status_format, *post_box, *navigation_box; char* output = NULL; struct mstdnt_args args = { @@ -43,7 +43,7 @@ void tl_public(mastodont_t* api, int local) .max_id = NULL, .since_id = NULL, .min_id = NULL, - .limit = 20, + .limit = 20 }; try_post_status(api); @@ -62,6 +62,7 @@ void tl_public(mastodont_t* api, int local) // Create post box post_box = construct_post_box(NULL, "", NULL); + navigation_box = construct_navigation_box(); easprintf(&output, "%s%s%s", post_box, status_format, data_navigation_html); struct base_page b = { @@ -78,6 +79,7 @@ void tl_public(mastodont_t* api, int local) mstdnt_cleanup_statuses(statuses, status_count); if (cleanup) free(status_format); if (post_box) free(post_box); + if (navigation_box) free(navigation_box); if (output) free(output); } diff --git a/static/navigation.html b/static/navigation.html index b6adedc..d6b2d58 100644 --- a/static/navigation.html +++ b/static/navigation.html @@ -1,7 +1,30 @@ - - - + + +