Move video size to css

This commit is contained in:
Pavel Djundik 2017-12-14 13:12:22 +02:00
parent 20415a2edb
commit fe51c6d7e7
2 changed files with 6 additions and 1 deletions

View file

@ -1449,6 +1449,11 @@ button.collapse-network:first-child:nth-last-child(3) {
max-width: 100%;
}
#chat video {
max-width: 640px;
max-height: 240px;
}
/* Do not display an empty div when there are no previews. Useful for example in
part/quit messages where we don't load previews (adds a blank line otherwise) */
#chat .preview:empty {

View file

@ -12,7 +12,7 @@
</audio>
{{/equal}}
{{#equal type "video"}}
<video width="320" height="240" preload="metadata" controls>
<video preload="metadata" controls>
<source src="{{link}}" type="{{res}}">
Your browser does not support the video element.
</video>