Add videos

This commit is contained in:
Alessio 2023-08-17 18:45:55 -03:00
parent fd0c625de5
commit 0c533c632b
2 changed files with 10 additions and 1 deletions

View File

@ -140,7 +140,10 @@ a.entity {
.focused-tweet .quoted-tweet .tweet-text {
font-size: unset;
}
.tweet-content video {
max-width: 100%;
max-height: 40em;
}
.thread-parent-tweet:first-child, .focused-tweet:first-child {
padding-top: 1em;
}
@ -187,6 +190,7 @@ a.entity {
margin: 0;
display: flex;
flex-direction: column;
align-self: stretch;
width: 1em; /* will be overridden by, e.g., parent-thread properties */
}
.vertical-container-1 {

View File

@ -59,6 +59,11 @@
{{range $main_tweet.Images}}
<img src="/content/images/{{.LocalFilename}}" style="max-width: 45%"/>
{{end}}
{{range $main_tweet.Videos}}
<video controls hx-trigger="click consume">
<source src="/content/videos/{{.LocalFilename}}">
</video>
{{end}}
{{if $main_tweet.QuotedTweetID}}
{{$quoted_tweet := (tweet $main_tweet.QuotedTweetID)}}