mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Unify avatar class generation
This commit is contained in:
parent
cc0e4b1668
commit
888e965f41
4 changed files with 15 additions and 11 deletions
|
|
@ -88,3 +88,9 @@ proc getTabClass*(query: Query; tab: QueryKind): string =
|
|||
result = "tab-item"
|
||||
if query.kind == tab:
|
||||
result &= " active"
|
||||
|
||||
proc getAvatarClass*(prefs: Prefs): string =
|
||||
if prefs.squareAvatars:
|
||||
"avatar"
|
||||
else:
|
||||
"avatar round"
|
||||
|
|
|
|||
Loading…
Reference in a new issue