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

View File

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