diff options
| author | Hunternif <hunternif@gmail.com> | 2019-04-11 08:03:11 +0700 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2019-04-11 09:23:23 +0700 |
| commit | 61502dd733e8570765abc0d98109650581fd84e0 (patch) | |
| tree | 3b81ce9d323632871932edc5ae6027f797f6c415 /client/html | |
| parent | 04e0f7f12c2f99f9fdebd24c6db54618f68ed139 (diff) | |
Adjust padding on mobile post page, move the comments section to bottom, tags to top
Diffstat (limited to 'client/html')
| -rw-r--r-- | client/html/post_main.tpl | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/client/html/post_main.tpl b/client/html/post_main.tpl index 2d55538..f017136 100644 --- a/client/html/post_main.tpl +++ b/client/html/post_main.tpl @@ -63,18 +63,32 @@ </nav> <div class='sidebar-container'></div> + + <% if (screen.width <= 1000) { %> + <div class='comments-panel'> + <% if (ctx.canListComments) { %> + <div class='comments-container'></div> + <% } %> + <% if (ctx.canCreateComments) { %> + <a id='add-comment-button'><h3>Add comment</h3></a> + <div class='comment-form-container'></div> + <% } %> + </div> + <% } %> </aside> <div class='content'> <div class='post-container'></div> - <% if (ctx.canListComments) { %> - <div class='comments-container'></div> - <% } %> + <% if (screen.width > 1000) { %> + <% if (ctx.canListComments) { %> + <div class='comments-container'></div> + <% } %> - <% if (ctx.canCreateComments) { %> - <a id='add-comment-button'><h3>Add comment</h3></a> - <div class='comment-form-container'></div> + <% if (ctx.canCreateComments) { %> + <a id='add-comment-button'><h3>Add comment</h3></a> + <div class='comment-form-container'></div> + <% } %> <% } %> </div> </div> |