UI fixes
This commit is contained in:
parent
6e330feee6
commit
d0cee1c24e
4 changed files with 29 additions and 13 deletions
|
@ -63,8 +63,7 @@ async function iterate(req, res, index) {
|
|||
}
|
||||
|
||||
let dat = await routesI[cmd].run(req, res, {});
|
||||
|
||||
if (!dat) {
|
||||
if (!dat && !res.headersSent) {
|
||||
return await routes.client['e404'].run(req, res, {});
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,12 @@ body {
|
|||
flex-direction: column
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
body {
|
||||
align-items: center;
|
||||
overflow-x: hidden;
|
||||
|
@ -163,7 +169,8 @@ body {
|
|||
}
|
||||
|
||||
.progressbar,
|
||||
.progressbar-div {
|
||||
.progressbar-div,
|
||||
.avatar-img {
|
||||
border-radius: var(--border-radius)
|
||||
}
|
||||
|
||||
|
|
10
views/user-clickable.ejs
Normal file
10
views/user-clickable.ejs
Normal file
|
@ -0,0 +1,10 @@
|
|||
<div>
|
||||
<img src='/pfp/<%= user %>.png' class='avatar-img'>
|
||||
<div>
|
||||
<div><b>
|
||||
<a class='link' href='/client/user?id=<%= user %>'>
|
||||
<%= user %>
|
||||
</a>
|
||||
</b></div>
|
||||
</div>
|
||||
</div>
|
|
@ -20,21 +20,21 @@
|
|||
<summary>
|
||||
<%= following.length %> following
|
||||
</summary>
|
||||
<% for (let user of following) { %>
|
||||
<a class='link' href='/client/user?id=<%= user.target %>'>
|
||||
<%= user.target %>
|
||||
</a>
|
||||
<%} %>
|
||||
<div class='flex-row'>
|
||||
<% for (let user of following) { %>
|
||||
<%- include('user-clickable.ejs', {user: user.username}) %>
|
||||
<%} %>
|
||||
</div>
|
||||
</details>
|
||||
<details>
|
||||
<summary>
|
||||
<%= followers.length %> followers
|
||||
</summary>
|
||||
<% for (let user of followers) { %>
|
||||
<a class='link' href='/client/user?id=<%= user.username %>'>
|
||||
<%= user.username %>
|
||||
</a>
|
||||
<%} %>
|
||||
<div class='flex-direction: row;'>
|
||||
<% for (let user of followers) { %>
|
||||
<%- include('user-clickable.ejs', {user: user.username}) %>
|
||||
<%} %>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
<h1 class='content-header'>Uploaded Videos</h1>
|
||||
|
|
Loading…
Reference in a new issue