Display account info + CSS Tweaks

FossilOrigin-Name: 5e0ec55106249d91a38ccb00c6828b12dc404e606922d7e3bed45c0bf97db4d7
This commit is contained in:
me@ow.nekobit.net 2022-01-31 04:13:33 +00:00
parent b9922b8b7e
commit 816fb56334
4 changed files with 36 additions and 6 deletions

29
dist/ratfe.css vendored
View file

@ -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;
}

View file

@ -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 */

View file

@ -5,7 +5,7 @@
<title>%s</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" type="text/css" href="ratfe.css">
<link rel="stylesheet" type="text/css" href="../dist/ratfe.css">
<!-- <link rel="stylesheet" type="text/css" href="../dist/ratfe.css"> -->
</head>
<body>
<div id="display-wrapper">
@ -16,8 +16,8 @@
<div id="navbar-right" class="alignend">
<!-- Searchbox -->
<form action="/search" method="get">
<input type="textbox" placeholder="Search" id="q" name="q">
<input type="submit" value="Search">
<input type="textbox" class="group group-left group-inputbox" placeholder="Search" id="searchbox" name="q"><!-- i hate HTML
--><input type="submit" class="group group-right" value="Search">
</form>
</div>
</header>

View file

@ -1,6 +1,6 @@
<div class="status">
<div class="profile-picture">
<img src="ratfe_logo.png" height="64">
<img src="%s" height="64">
</div>
<div class="status-info">
<div class="poster-stats">