polished UI form and function

This commit is contained in:
ari melody 2024-06-21 06:52:34 +01:00
parent 0f2a021622
commit e9c6510286
Signed by: ari
GPG key ID: CF99829C92678188
9 changed files with 56 additions and 20 deletions

View file

@ -8,16 +8,16 @@
</script>
<div class="post-header-container">
<a href="/{post.user.mention}" class="post-avatar-container">
<a href={post.user.url} target="_blank" class="post-avatar-container">
<img src={post.user.avatar_url} type={post.user.avatar_type} alt="" width="48" height="48" class="post-avatar" loading="lazy" decoding="async">
</a>
<header class="post-header">
<div class="post-user-info">
<a href="/{post.user.mention}" class="name">{@html post.user.rich_name}</a>
<a href={post.user.url} target="_blank" class="name">{@html post.user.rich_name}</a>
<span class="username">{post.user.mention}</span>
</div>
<div class="post-info">
<a href={post.url} class="created-at">
<a href={post.url} target="_blank" class="created-at">
<time title={time_string}>{short_time(post.created_at)}</time>
{#if post.visibility !== "public"}
<span class="post-visibility">({post.visibility})</span>
@ -44,6 +44,7 @@
.post-avatar-container {
margin-right: 12px;
display: flex;
}
.post-avatar {
@ -61,6 +62,13 @@
margin-left: auto;
}
.post-user-info {
margin-top: -6px;
display: flex;
flex-direction: column;
justify-content: center;
}
.post-user-info a {
display: block;
}
@ -68,7 +76,7 @@
.post-user-info .name :global(.emoji) {
position: relative;
top: 4px;
height: 26px;
height: 20px;
}
.post-user-info .username {