fix avatars
This commit is contained in:
parent
352f058175
commit
9774ef6afc
@ -28,12 +28,15 @@ nav.pagination {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.userinfo avatar-.title {
|
||||
.userinfo .avatar-title {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 1rem;
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
.userinfo .avatar-title img.img { flex: 1; }
|
||||
|
||||
.content .bbc-block > h4 {
|
||||
font-size: 1rem;
|
||||
|
@ -46,7 +46,7 @@
|
||||
:regdate regdate
|
||||
:avatar-title (hickory-to-hiccup
|
||||
(hickory-div (:content title) "avatar-title"))
|
||||
:avatar (hickory-to-hiccup avatar)}))
|
||||
:avatar (when avatar (hickory-to-hiccup avatar))}))
|
||||
|
||||
(defn parse-pd [pd]
|
||||
(string/trim (last (hickory-to-hiccup pd))))
|
||||
|
@ -110,8 +110,9 @@
|
||||
(let [{:keys [author regdate avatar avatar-title]} (:ui post)]
|
||||
(list
|
||||
[:div.media
|
||||
(when avatar
|
||||
[:div.media-left.is-hidden-tablet
|
||||
[:figure.image.is-64x64 avatar]]
|
||||
[:figure.image.is-64x64 avatar]])
|
||||
[:div.media-content
|
||||
[:p.author.title.is-4 author]
|
||||
[:p.regdate.subtitle.is-6 regdate]]]
|
||||
|
Loading…
Reference in New Issue
Block a user