From 0e94e7ffa542c81d351395cfa2d7d5e4e29f881b Mon Sep 17 00:00:00 2001 From: ludwiczakpawel Date: Mon, 4 Jan 2021 09:38:54 +0100 Subject: [PATCH] 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 --- app/assets/stylesheets/config/_generator.scss | 7 +++++++ app/views/notifications/shared/_comment_box.html.erb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/config/_generator.scss b/app/assets/stylesheets/config/_generator.scss index 40488e8b8..b427014e4 100644 --- a/app/assets/stylesheets/config/_generator.scss +++ b/app/assets/stylesheets/config/_generator.scss @@ -728,5 +728,12 @@ ), (), true + ), + ( + 'resize', + 'resize', + ('x': horizontal, 'y': vertical, 'none': none), + (), + false ) ); diff --git a/app/views/notifications/shared/_comment_box.html.erb b/app/views/notifications/shared/_comment_box.html.erb index c89e7eb83..7796e5ae4 100644 --- a/app/views/notifications/shared/_comment_box.html.erb +++ b/app/views/notifications/shared/_comment_box.html.erb @@ -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..." %>