From 816fb56334caac53e481274353883e093f61cb91 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Mon, 31 Jan 2022 04:13:33 +0000 Subject: [PATCH] Display account info + CSS Tweaks FossilOrigin-Name: 5e0ec55106249d91a38ccb00c6828b12dc404e606922d7e3bed45c0bf97db4d7 --- dist/ratfe.css | 29 +++++++++++++++++++++++++++++ src/status.c | 5 +++-- static/index.html | 6 +++--- static/status.html | 2 +- 4 files changed, 36 insertions(+), 6 deletions(-) diff --git a/dist/ratfe.css b/dist/ratfe.css index 9880d3a..8a7eab5 100644 --- a/dist/ratfe.css +++ b/dist/ratfe.css @@ -182,3 +182,32 @@ input[type=button], input[type=submit] { color: #808080; } + +.group +{ + padding: 0; + margin: 0 !important; + height: 28px; + +} + +/* These are a pain for some reason */ +.group-inputbox +{ + border: 1px solid #cacaca; + padding-left: 5px; + border-right: 0px; + height: 26px; +} + +.group-left +{ + border-top-left-radius: 5px; + border-bottom-left-radius: 5px; +} + +.group-right +{ + border-top-right-radius: 5px; + border-bottom-right-radius: 5px; +} diff --git a/src/status.c b/src/status.c index db179b3..8cd0a3b 100644 --- a/src/status.c +++ b/src/status.c @@ -30,8 +30,9 @@ char* construct_statuses(struct mstdnt_status* statuses, size_t size, size_t* re for (size_t i = 0; i < size; ++i) { parse_size = easprintf(&stat_html, data_status_html, - statuses[i].id, /* Username */ - "@who?", /* Account */ + statuses[i].account.avatar, + statuses[i].account.display_name, /* Username */ + statuses[i].account.acct, /* Account */ "Public?", /* visibility */ statuses[i].content); if (parse_size == -1) /* Malloc error */ diff --git a/static/index.html b/static/index.html index ff136d8..e1b21c7 100644 --- a/static/index.html +++ b/static/index.html @@ -5,7 +5,7 @@ %s - +
@@ -16,8 +16,8 @@ diff --git a/static/status.html b/static/status.html index 651e065..67ae4f0 100644 --- a/static/status.html +++ b/static/status.html @@ -1,6 +1,6 @@
- +