Use MD for comment CRUD

This commit is contained in:
Jose Farias
2024-12-17 00:36:37 -06:00
parent fdea6d4248
commit 9ce4a73214
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<div class="comment__content flex-inline flex-column full-width border border-radius" style="background-color: var(--color-selected);">
<%= form_with model: [@bubble.bucket, @bubble, @comment], class: "flex flex-column gap full-width",
data: { controller: "form", action: "keydown.ctrl+enter->form#submit:prevent keydown.meta+enter->form#submit:prevent keydown.esc->form#cancel" } do |form| %>
<%= form.text_area :body, class: "input comment__input", required: true, rows: 3 %>
<%= form.markdown_area :body, class: "input comment__input", required: true %>
<div class="flex gap-half justify-start">
<%= form.button class: "btn btn--reversed txt-small", type: :submit do %>
<%= image_tag "check.svg", aria: { hidden: true }, size: 16 %>
+1 -1
View File
@@ -16,7 +16,7 @@
<% end %>
</div>
<div class="comment__body txt-align-start">
<%= simple_format @comment.body %>
<%= sanitize @comment.body_html %>
</div>
</div>
<% end %>