mirror of
https://github.com/zedeus/nitter.git
synced 2026-01-31 15:52:50 -05:00
Unify avatar class generation
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user