From a4e10187a80b18ef5df9450b29c605635ec71c5c Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Thu, 3 Mar 2022 20:38:51 +0000 Subject: [PATCH] Remove border and padding Not permanent, just wanted to get rid of them FossilOrigin-Name: a830bf62557a9b40d7d10ed6ab3059975f04b62a933a368a1fa3282055374473 --- dist/ratfe20.css | 33 +++++++++++++++++++++++---------- src/login.c | 4 ++-- src/status.c | 2 +- src/timeline.c | 4 ++-- 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/dist/ratfe20.css b/dist/ratfe20.css index 75f1f0d..176721c 100644 --- a/dist/ratfe20.css +++ b/dist/ratfe20.css @@ -71,9 +71,11 @@ body min-width: 640px; overflow: hidden; min-height: 600px; + border-collapse: collapse !important; + padding: 0; } -#content, tr, td +#content { border-collapse: collapse !important; } @@ -170,6 +172,10 @@ ul li:first-child a.sidebarbtn padding: 4px 2px 0 4px; border-bottom: 1px solid #cacaca !important; width: 100%; + border-collapse: collapse !important; + border-spacing: 0px; + margin: 0; + padding: 0; } .status .profile-picture @@ -188,6 +194,8 @@ ul li:first-child a.sidebarbtn .pfp-td { width: 56px; + border-collapse: collapse !important; + padding: 0; } .status tr @@ -195,6 +203,7 @@ ul li:first-child a.sidebarbtn width: auto; } + .status .status-info { display: flex; @@ -202,6 +211,14 @@ ul li:first-child a.sidebarbtn min-width: 0; flex-direction: column; width: auto; + padding: 0; +} + +.status .status-info table, .status .status-info td, .status .status-info tr +{ + border-collapse: collapse !important; + padding: 0; + margin: 0; } .status .instance-info @@ -248,22 +265,18 @@ ul li:first-child a.sidebarbtn display: flex; } -.status-interact ul +.status-interact table { - display: flex; + border-collapse: collapse !important; padding: 0; - margin: 0; } -.status-interact ul li +.status-interact table tr { - display: inline-block; - margin: 0; + border-collapse: collapse !important; padding: 0; - list-style-type: none; } - /*************************** * Element Grouping * **************************/ @@ -462,7 +475,7 @@ ul li:first-child a.sidebarbtn border: 0 !important; } -.status-interact ul li:not(:last-child) .nobutton +.status-interact tr td:not(:last-child) .nobutton { border-right: 1px solid #cacaca !important; diff --git a/src/login.c b/src/login.c index fe835f3..742cfd4 100644 --- a/src/login.c +++ b/src/login.c @@ -40,7 +40,7 @@ void content_login(mastodont_t* api, char** data, size_t data_size) if (post.username && post.password) { // Getting the client id/secret - struct mstdnt_app_register_args args_app = { + struct mstdnt_args args_app = { .client_name = "RatFE", .redirect_uris = "http://localhost/", .scopes = "read+write+follow+push", @@ -49,7 +49,7 @@ void content_login(mastodont_t* api, char** data, size_t data_size) mastodont_register_app(api, &args_app, &storage, &app); - struct mstdnt_oauth_token_args args_token = { + struct mstdnt_args args_token = { .grant_type = "password", .client_id = app.client_id, .client_secret = app.client_secret, diff --git a/src/status.c b/src/status.c index aa70ae1..07f911a 100644 --- a/src/status.c +++ b/src/status.c @@ -41,7 +41,7 @@ int try_post_status(mastodont_t* api) struct mstdnt_storage storage; // Cookie copy and read - struct mstdnt_create_status_args args = { + struct mstdnt_args args = { .content_type = "text/plain", .expires_in = 0, .in_reply_to_conversation_id = NULL, diff --git a/src/timeline.c b/src/timeline.c index ba2d0a2..0829594 100644 --- a/src/timeline.c +++ b/src/timeline.c @@ -35,7 +35,7 @@ void tl_public(mastodont_t* api, int local) char* status_format, *post_box; char* output = NULL; - struct mstdnt_timeline_public_args args = { + struct mstdnt_args args = { .local = local, .remote = 0, .only_media = 0, @@ -89,7 +89,7 @@ void tl_list(mastodont_t* api, char* list_id) char* status_format, *post_box; char* output = NULL; - struct mstdnt_timeline_list_args args = { + struct mstdnt_args args = { .max_id = NULL, .since_id = NULL, .min_id = NULL,