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
|
@ -98,6 +98,8 @@
|
|||
}
|
||||
|
||||
.avatar {
|
||||
position: absolute;
|
||||
|
||||
&.round {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
@ -110,6 +112,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
.tweet-embed {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
|
||||
.tweet-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 0.75em * 2);
|
||||
}
|
||||
}
|
||||
|
||||
.attribution {
|
||||
display: flex;
|
||||
pointer-events: all;
|
||||
|
|
|
@ -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