Profile pictures now show in posts
This commit is contained in:
parent
06fedb4387
commit
b28fc8fdc5
2 changed files with 15 additions and 3 deletions
|
@ -46,6 +46,10 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
#header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.votes {
|
.votes {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -59,7 +63,14 @@
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pfp {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.date {
|
.date {
|
||||||
|
margin-left: 1rem;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
@ -80,8 +91,9 @@
|
||||||
</Area>
|
</Area>
|
||||||
{:else}
|
{:else}
|
||||||
<Area>
|
<Area>
|
||||||
<span slot="header">
|
<span slot="header" id='header'>
|
||||||
<a href='/user/{username}'>
|
<img class='pfp' src='/pfp/{username}.png'/>
|
||||||
|
<a href='/users/{username}'>
|
||||||
{username}
|
{username}
|
||||||
</a>
|
</a>
|
||||||
<span class='date'>
|
<span class='date'>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-content: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue