Commit af35d461 authored by JC Brand's avatar JC Brand

Set max-height for embedded videos.

Also udpate markup to not use `<source>`.

updates #1189
parent b9c6a29f
...@@ -81419,9 +81419,9 @@ return __p ...@@ -81419,9 +81419,9 @@ return __p
var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")}; var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
module.exports = function(o) { module.exports = function(o) {
var __t, __p = '', __e = _.escape; var __t, __p = '', __e = _.escape;
__p += '<!-- src/templates/video.html -->\n<video controls><source src="' + __p += '<!-- src/templates/video.html -->\n<video controls src="' +
__e(o.url) + __e(o.url) +
'" type="video/mp4"></video>\n<a target="_blank" rel="noopener" href="' + '" type="video/mp4" style="max-height: 50vh"></video>\n<a target="_blank" rel="noopener" href="' +
__e(o.url) + __e(o.url) +
'">' + '">' +
__e(o.label_download) + __e(o.label_download) +
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<noscript><p><img src="//stats.opkode.com/piwik.php?idsite=5" style="border:0;" alt="" /></p></noscript> <noscript><p><img src="//stats.opkode.com/piwik.php?idsite=5" style="border:0;" alt="" /></p></noscript>
<link type="text/css" rel="stylesheet" media="screen" href="css/converse.css" /> <link type="text/css" rel="stylesheet" media="screen" href="css/converse.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css/fullpage.css" /> <link type="text/css" rel="stylesheet" media="screen" href="css/fullpage.css" />
<script src="3rdparty/libsignal-protocol.js"></script>
<script src="dist/converse.js"></script> <script src="dist/converse.js"></script>
</head> </head>
<body class="reset"> <body class="reset">
......
<video controls><source src="{{{o.url}}}" type="video/mp4"></video> <video controls src="{{{o.url}}}" type="video/mp4" style="max-height: 50vh"></video>
<a target="_blank" rel="noopener" href="{{{o.url}}}">{{{o.label_download}}}</a> <a target="_blank" rel="noopener" href="{{{o.url}}}">{{{o.label_download}}}</a>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment