mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 16:17:29 +00:00
Fix name on post when no full_name
This commit is contained in:
parent
d32a12a134
commit
9969dd8c7d
@ -6,7 +6,11 @@ mixin post(post, headerWithNavigation)
|
|||||||
.user-header
|
.user-header
|
||||||
header.user-header-inner
|
header.user-header-inner
|
||||||
img(src=post.ownerPfpCacheP width=150 height=150 alt="").pfp
|
img(src=post.ownerPfpCacheP width=150 height=150 alt="").pfp
|
||||||
a.name(href=`/u/${post.getBasicOwner().username}`)= `${post.data.owner.full_name} (@${post.getBasicOwner().username})`
|
a.name(href=`/u/${post.getBasicOwner().username}`)
|
||||||
|
if post.data.owner.full_name
|
||||||
|
= `${post.data.owner.full_name} (@${post.getBasicOwner().username})`
|
||||||
|
else
|
||||||
|
= `@${post.getBasicOwner().username}`
|
||||||
if headerWithNavigation
|
if headerWithNavigation
|
||||||
button.navigate-posts.previous
|
button.navigate-posts.previous
|
||||||
img(src="/static/img/arrow-circled.svg" alt="Previous post." style="transform: rotate(180deg)").icon
|
img(src="/static/img/arrow-circled.svg" alt="Previous post." style="transform: rotate(180deg)").icon
|
||||||
|
@ -268,11 +268,12 @@ body
|
|||||||
display: block
|
display: block
|
||||||
|
|
||||||
.user-header-inner
|
.user-header-inner
|
||||||
|
grid-row: 1
|
||||||
|
grid-column: 2
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: center
|
justify-content: center
|
||||||
grid-row: 1
|
margin: 0px 10px
|
||||||
grid-column: 2
|
|
||||||
|
|
||||||
.pfp
|
.pfp
|
||||||
$size: 40px
|
$size: 40px
|
||||||
@ -297,7 +298,7 @@ body
|
|||||||
font-size: 20px
|
font-size: 20px
|
||||||
line-height: 1.4
|
line-height: 1.4
|
||||||
unicode-bidi: plaintext
|
unicode-bidi: plaintext
|
||||||
|
|
||||||
@media screen and (max-width: $layout-a-max)
|
@media screen and (max-width: $layout-a-max)
|
||||||
font-size: 18px
|
font-size: 18px
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user