twitterchiver/viewer: fix GIFs; large images
This commit is contained in:
parent
d9c5f3f74d
commit
bb33b8fae0
1 changed files with 9 additions and 1 deletions
|
@ -82,7 +82,7 @@ a:hover {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 50% 50%;
|
grid-template-columns: 50% 50%;
|
||||||
grid-template-rows: 50% 50%;
|
grid-template-rows: max-content;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
}
|
}
|
||||||
.media-item:only-child,
|
.media-item:only-child,
|
||||||
|
@ -139,6 +139,14 @@ a:hover {
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</video>
|
</video>
|
||||||
|
{{else if eq $entity.type "gif"}}
|
||||||
|
<video autoplay muted poster="{{rewriteURL $entity.media_url_https}}" class="media-video">
|
||||||
|
{{with bestVariant $entity.video_info.variants}}
|
||||||
|
{{if .}}
|
||||||
|
<source src="{{rewriteURL .url}}" type="video/mp4">
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
</video>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a href="{{$entity.expanded_url}}" class="media-link">
|
<a href="{{$entity.expanded_url}}" class="media-link">
|
||||||
<img src="{{rewriteURL $entity.media_url_https}}" class="media-img">
|
<img src="{{rewriteURL $entity.media_url_https}}" class="media-img">
|
||||||
|
|
Loading…
Reference in a new issue