From f63d024777ca832826e804a9054ecadbab48f9e9 Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 27 Aug 2016 20:32:15 +0200 Subject: [PATCH] client/css: improve comment edit form background If text area was bigger than the post, switching to preview mode showed gray space under the text. Now the preview pane's background should fill the whole edit box size. --- client/css/comment-control.styl | 11 +++++----- client/html/comment_form.tpl | 24 +++++++++++----------- client/js/controls/comment_form_control.js | 6 ++++-- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/client/css/comment-control.styl b/client/css/comment-control.styl index 4a9075c2..aa12f111 100644 --- a/client/css/comment-control.styl +++ b/client/css/comment-control.styl @@ -13,13 +13,12 @@ display: none .tabs-wrapper background: $active-tab-background-color - .tab padding: 0.3em - .comment-content-wrapper - background: $window-color - overflow: hidden - .comment-content - margin: 1em + .tab-wrapper[data-tab='preview'] + background: $window-color + .tab.preview + padding: 1em + .tab.edit textarea resize: vertical width: 100% diff --git a/client/html/comment_form.tpl b/client/html/comment_form.tpl index 5c60149f..e5839ed3 100644 --- a/client/html/comment_form.tpl +++ b/client/html/comment_form.tpl @@ -1,18 +1,18 @@
-
<%= ctx.makeMarkdown(ctx.comment.text) %>
+ %>
<% + %><% + %>
<% + %>
<% + %>