mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
wrapped embedded tweet in div and changed css
also bumped css version
This commit is contained in:
parent
875a2c5387
commit
817501a516
3 changed files with 20 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ proc renderHead*(prefs: Prefs; cfg: Config; req: Request; titleText=""; desc="";
|
|||
let opensearchUrl = getUrlPrefix(cfg) & "/opensearch"
|
||||
|
||||
buildHtml(head):
|
||||
link(rel="stylesheet", type="text/css", href="/css/style.css?v=10")
|
||||
link(rel="stylesheet", type="text/css", href="/css/style.css?v=11")
|
||||
link(rel="stylesheet", type="text/css", href="/css/fontello.css?v=2")
|
||||
|
||||
if theme.len > 0:
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ proc renderEmbeddedTweet*(tweet: Tweet; cfg: Config; req: Request; prefs: Prefs;
|
|||
if tweet.quote.isSome:
|
||||
renderQuote(tweet.quote.get(), prefs, path)
|
||||
|
||||
buildHtml(tdiv(class="timeline-item")):
|
||||
let body = buildHtml(tdiv(class="timeline-item")):
|
||||
renderHead(prefs, cfg, req)
|
||||
tdiv(class="tweet-body"):
|
||||
var views = ""
|
||||
|
|
@ -339,6 +339,9 @@ proc renderEmbeddedTweet*(tweet: Tweet; cfg: Config; req: Request; prefs: Prefs;
|
|||
|
||||
if not prefs.hideTweetStats:
|
||||
renderStats(tweet.stats, views)
|
||||
|
||||
return buildHtml(tdiv(class="tweet-embed")):
|
||||
body
|
||||
|
||||
|
||||
proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue