mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-08 04:55:37 -05:00
wrapped embedded tweet in div and changed css
also bumped css version
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user