summaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2025-02-15 21:12:17 +0000
committerHunternif <hunternif@gmail.com>2025-02-15 21:20:46 +0000
commit760fce7d2834a240781a55df9d96afb0e45fac3d (patch)
tree548506347b98ba2375e7763567275cfdb0c319ba /client/html
parentbee80ce9e954050976ab2af3609abda7aadf700c (diff)
client: fix logic for placing comment section on mobile
Diffstat (limited to 'client/html')
-rw-r--r--client/html/post_main.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/html/post_main.tpl b/client/html/post_main.tpl
index f170713..cebab17 100644
--- a/client/html/post_main.tpl
+++ b/client/html/post_main.tpl
@@ -70,7 +70,7 @@
<div class='sidebar-container'></div>
- <% if (screen.width <= 1000) { %>
+ <% if (window.innerWidth <= 1000) { %>
<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 (screen.width > 1000) { %>
+ <% if (window.innerWidth > 1000) { %>
<% if (ctx.canListComments) { %>
<div class='comments-container'></div>
<% } %>