mirror of
https://codeberg.org/kirche-im-netz/Startodon-Hub.git
synced 2025-07-14 11:25:10 +02:00
Postwall - Avatar-Header Formatierung
This commit is contained in:
parent
7f1a84656b
commit
611c65c40b
2 changed files with 20 additions and 9 deletions
|
@ -89,7 +89,7 @@ export async function loadPostwall() {
|
|||
<div class="post-header">
|
||||
<img src="${avatar}" alt="${author}" class="avatar">
|
||||
<div class="post-author">
|
||||
<strong>${author}</strong>
|
||||
<span class="post-authorname">${author}</span>
|
||||
<span class="post-username">${username}</span>
|
||||
</div>
|
||||
<span class="post-timestamp">${timeAgo}</span>
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
|
||||
.post-timestamp {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
font-size: 0.8rem;
|
||||
color: #bbb;
|
||||
font-weight: bold;
|
||||
|
@ -69,9 +69,24 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
.post-authorname {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.post-username {
|
||||
font-size: 0.8em;
|
||||
color: #bbb;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
|
@ -171,12 +186,8 @@
|
|||
flex: 0 0 300px;
|
||||
max-height: 350px;
|
||||
}
|
||||
.post-header .avatar {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
.post-username {
|
||||
font-size: 0.8em;
|
||||
.post-authorname {
|
||||
max-width: 170px;
|
||||
}
|
||||
.post-media img {
|
||||
max-height: 120px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue