aboutsummaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorrr-2017-01-03 20:00:41 +0100
committerrr-2017-01-03 20:14:27 +0100
commit4340b4d9b2e71624bcb482cc9b817bef3cf80ff6 (patch)
tree8fca518a3c64be6f9c8d0f5aca4a821ea32e057c /client/html
parente2fcd08ce99f8850d3f319ed134b00c3b0e3629f (diff)
client/posts: fix resize modes on chrome
Diffstat (limited to 'client/html')
-rw-r--r--client/html/post_content.tpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/html/post_content.tpl b/client/html/post_content.tpl
index 0703ace..10bfb15 100644
--- a/client/html/post_content.tpl
+++ b/client/html/post_content.tpl
@@ -1,11 +1,11 @@
<div class='post-content post-type-<%- ctx.post.type %>'>
<% if (['image', 'animation'].includes(ctx.post.type)) { %>
- <img alt='' src='<%- ctx.post.contentUrl %>'/>
+ <img class='resize-listener' alt='' src='<%- ctx.post.contentUrl %>'/>
<% } else if (ctx.post.type === 'flash') { %>
- <object width='<%- ctx.post.canvasWidth %>' height='<%- ctx.post.canvasHeight %>' data='<%- ctx.post.contentUrl %>'>
+ <object class='resize-listener' width='<%- ctx.post.canvasWidth %>' height='<%- ctx.post.canvasHeight %>' data='<%- ctx.post.contentUrl %>'>
<param name='wmode' value='opaque'/>
<param name='movie' value='<%- ctx.post.contentUrl %>'/>
</object>
@@ -14,6 +14,7 @@
<%= ctx.makeElement(
'video', {
+ class: 'resize-listener',
controls: true,
loop: (ctx.post.flags || []).includes('loop'),
autoplay: ctx.autoplay,
@@ -27,6 +28,6 @@
<% } else { console.log(new Error('Unknown post type')); } %>
- <div class='post-overlay'>
+ <div class='post-overlay resize-listener'>
</div>
</div>

© 2015 - 2026 Jakob L. Kreuze