diff --git a/tildes/scss/modules/_form.scss b/tildes/scss/modules/_form.scss index 59a90a8..64d8e22 100644 --- a/tildes/scss/modules/_form.scss +++ b/tildes/scss/modules/_form.scss @@ -32,6 +32,18 @@ select.form-select:not([multiple]) { margin-bottom: 2rem; } +.form-markdown { + header { + display: flex; + justify-content: space-between; + align-items: center; + + a { + font-size: 0.6rem; + } + } +} + .form-buttons { display: flex; flex-direction: row-reverse; diff --git a/tildes/static/js/behaviors/comment-reply-button.js b/tildes/static/js/behaviors/comment-reply-button.js index 38161e3..6dbb12b 100644 --- a/tildes/static/js/behaviors/comment-reply-button.js +++ b/tildes/static/js/behaviors/comment-reply-button.js @@ -21,7 +21,6 @@ $.onmount('[data-js-comment-reply-button]', function() { var $parentComment = $(this).parents('article.comment:first'); var parentCommentID = $parentComment.attr('data-comment-id36'); - var parentCommentAuthor = $parentComment.find('header:first .link-user').text(); var postURL = '/api/web/comments/' + parentCommentID + '/replies'; var markdownID = 'markdown-reply-' + parentCommentID; var previewID = markdownID + '-preview'; @@ -36,8 +35,6 @@ $.onmount('[data-js-comment-reply-button]', function() { var clone = document.importNode(template.content, true); clone.querySelector('form').setAttribute('data-ic-post-to', postURL); - clone.querySelector('label').setAttribute('for', markdownID); - clone.querySelector('span').innerHTML = 'Replying to ' + parentCommentAuthor; clone.querySelector('textarea').setAttribute('id', markdownID); var preview = clone.querySelector('[data-js-markdown-preview]'); diff --git a/tildes/tildes/templates/intercooler/comment_edit.jinja2 b/tildes/tildes/templates/intercooler/comment_edit.jinja2 index 93a7eb1..6e77562 100644 --- a/tildes/tildes/templates/intercooler/comment_edit.jinja2 +++ b/tildes/tildes/templates/intercooler/comment_edit.jinja2 @@ -14,7 +14,6 @@ data-js-confirm-leave-page-unsaved > {{ markdown_textarea( - 'Edit your comment', id='markdown-edit-%s' % comment.comment_id36, text=comment.markdown, auto_focus=True, diff --git a/tildes/tildes/templates/intercooler/topic_edit.jinja2 b/tildes/tildes/templates/intercooler/topic_edit.jinja2 index f77312a..4d0c4ef 100644 --- a/tildes/tildes/templates/intercooler/topic_edit.jinja2 +++ b/tildes/tildes/templates/intercooler/topic_edit.jinja2 @@ -13,7 +13,7 @@ data-ic-target=".topic-full .topic-full-text" data-js-confirm-leave-page-unsaved > - {{ markdown_textarea('Edit your topic', id="topic-markdown", text=topic.markdown, auto_focus=True) }} + {{ markdown_textarea(id="topic-markdown", text=topic.markdown, auto_focus=True) }}
- -
  • - -
  • - +
    + +
  • + +
  • +
  • + +
  • +
    + Formatting help +