Setting constraints for resizing comment textarea in notifications (#12079)

* tooltips 1.0.1

* tooltips 1.0.1

* set constraints for resizing comment textarea in notifications
This commit is contained in:
ludwiczakpawel 2021-01-04 09:38:54 +01:00 committed by GitHub
parent 1c4e54a25d
commit 0e94e7ffa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -728,5 +728,12 @@
),
(),
true
),
(
'resize',
'resize',
('x': horizontal, 'y': vertical, 'none': none),
(),
false
)
);

View file

@ -76,7 +76,7 @@
<%= f.hidden_field :commentable_type, value: json_data["comment"]["commentable"]["class"]["name"] %>
<%= f.hidden_field :parent_id, value: json_data["comment"]["id"] %>
<%= f.text_area :body_markdown, id: "comment-textarea-for-#{json_data['comment']['id']}", class: "crayons-textfield mb-2", placeholder: "Reply...", 'aria-label': "Reply to a comment..." %>
<%= f.text_area :body_markdown, id: "comment-textarea-for-#{json_data['comment']['id']}", class: "crayons-textfield mb-2 resize-y", placeholder: "Reply...", 'aria-label': "Reply to a comment..." %>
<div class="actions">
<button type="submit" class="crayons-btn comment-action-button" onclick="validateField(event)">Submit</button>
</div>