mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Support even more obscure card types
This commit is contained in:
parent
77994e8246
commit
0c9c37e886
4 changed files with 16 additions and 7 deletions
|
|
@ -150,8 +150,10 @@ proc renderCardImage(card: Card): VNode =
|
|||
proc renderCardContent(card: Card): VNode =
|
||||
buildHtml(tdiv(class="card-content")):
|
||||
h2(class="card-title"): text card.title
|
||||
p(class="card-description"): text card.text
|
||||
span(class="card-destination"): text card.dest
|
||||
if card.text.len > 0:
|
||||
p(class="card-description"): text card.text
|
||||
if card.dest.len > 0:
|
||||
span(class="card-destination"): text card.dest
|
||||
|
||||
proc renderCard(card: Card; prefs: Prefs; path: string): VNode =
|
||||
const smallCards = {app, player, summary, storeLink}
|
||||
|
|
|
|||
Loading…
Reference in a new issue