mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Improve verified checkmark icon, css improvements
This commit is contained in:
parent
96ec75fc7f
commit
436a873e4b
13 changed files with 172 additions and 69 deletions
|
|
@ -26,7 +26,9 @@ proc icon*(icon: string; text=""; title=""; class=""; href=""): VNode =
|
|||
template verifiedIcon*(user: User): untyped {.dirty.} =
|
||||
if user.verifiedType != VerifiedType.none:
|
||||
let lower = ($user.verifiedType).toLowerAscii()
|
||||
icon "ok", class=(&"verified-icon {lower}"), title=(&"Verified {lower} account")
|
||||
buildHtml(tdiv(class=(&"verified-icon {lower}"))):
|
||||
icon "circle", class="verified-icon-circle", title=(&"Verified {lower} account")
|
||||
icon "ok", class="verified-icon-check", title=(&"Verified {lower} account")
|
||||
else:
|
||||
text ""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue