diff options
| -rw-r--r-- | client/html/post_main.tpl | 4 | ||||
| -rw-r--r-- | client/js/controls/post_content_control.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/html/post_main.tpl b/client/html/post_main.tpl index 33f9afd..f0fc46d 100644 --- a/client/html/post_main.tpl +++ b/client/html/post_main.tpl @@ -70,7 +70,7 @@ <div class='sidebar-container'></div> - <% if (window.innerWidth <= 1000) { %> + <% if (window.innerWidth <= 800) { %> <div class='comments-panel'> <% if (ctx.canListComments) { %> <div class='comments-container'></div> @@ -86,7 +86,7 @@ <div class='content'> <div class='post-container'></div> - <% if (window.innerWidth > 1000) { %> + <% if (window.innerWidth > 800) { %> <% if (ctx.canListComments) { %> <div class='comments-container'></div> <% } %> diff --git a/client/js/controls/post_content_control.js b/client/js/controls/post_content_control.js index 0023854..b42c711 100644 --- a/client/js/controls/post_content_control.js +++ b/client/js/controls/post_content_control.js @@ -107,7 +107,7 @@ class PostContentControl { _resizePostContent(width, height) { // on mobile don't make the content node narrower than the screen, so that small images are centered // use browser width to accommodate Android's on-screen buttons in landscape mode - if (window.innerWidth < 1000) { + if (window.innerWidth <= 800) { width = Math.max(window.innerWidth, width); } this._postContentNode.style.width = width + "px"; @@ -121,7 +121,7 @@ class PostContentControl { _install() { this._reinstall(); // Don't auto-resize on mobile, to prevent size jerk when scrolling - if (window.innerWidth > 1000) { + if (window.innerWidth > 800) { optimizedResize.add(() => this._refreshSize()); } views.monitorNodeRemoval(this._hostNode, () => { |