diff --git a/app/assets/stylesheets/cards.css b/app/assets/stylesheets/cards.css index aaf6056b1..4866e83b0 100644 --- a/app/assets/stylesheets/cards.css +++ b/app/assets/stylesheets/cards.css @@ -107,7 +107,7 @@ .card__description { /* Hide the empty element that Lexical saves when nothing is added to the description


*/ - p:only-child:has(br:only-child) { + action-text-content p:only-child:has(br:only-child) { display: none; } diff --git a/app/views/cards/container/_title.html.erb b/app/views/cards/container/_title.html.erb index 3f2ff79c7..6ad7d5829 100644 --- a/app/views/cards/container/_title.html.erb +++ b/app/views/cards/container/_title.html.erb @@ -17,13 +17,11 @@ autofocus: card.title.blank? || params[:focus_on_title], rows: 1, data: { autoresize_target: "textarea", action: "input->autoresize#resize auto-save#change blur->auto-save#submit keydown.enter->auto-save#submit:prevent keydown.ctrl+enter->auto-save#submit:prevent" } %> -
- <%= form.rich_textarea :description, class: "card-field__description", - placeholder: "Add some notes, context, pictures, or video about this…", - data: { action: "actiontext:change->auto-save#change focusout->auto-save#submit keydown.ctrl+enter->form#submit:prevent keydown.meta+enter->form#submit:prevent keydown.esc->form#cancel:stop" } do %> - <%= mentions_prompt(card.collection) %> - <%= cards_prompt %> + <%= form.rich_textarea :description, class: "card-field__description margin-block-start-half margin-block-end", + placeholder: "Add some notes, context, pictures, or video about this…", + data: { action: "actiontext:change->auto-save#change focusout->auto-save#submit keydown.ctrl+enter->form#submit:prevent keydown.meta+enter->form#submit:prevent keydown.esc->form#cancel:stop" } do %> + <%= mentions_prompt(card.collection) %> + <%= cards_prompt %> <% end %> -
<% end %> <% end %> diff --git a/app/views/cards/edit.html.erb b/app/views/cards/edit.html.erb index 8cf623422..5813d2e32 100644 --- a/app/views/cards/edit.html.erb +++ b/app/views/cards/edit.html.erb @@ -14,7 +14,7 @@ <%= mentions_prompt(@card.collection) %> <%= cards_prompt %> <% end %> - + <%= form.button "Save changes", type: :submit, class: "btn btn--reversed", style: "--btn-background: #{@card.color}" %> <%= link_to "Close editor and discard changes", collection_card_path(@card.collection, @card), data: { form_target: "cancel" }, hidden: true %> <% end %>