Merge pull request #784 from basecamp/ff-cursor-fix
Removed redundant div
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
|
||||
.card__description {
|
||||
/* Hide the empty element that Lexical saves when nothing is added to the description <p><br /></p> */
|
||||
p:only-child:has(br:only-child) {
|
||||
action-text-content p:only-child:has(br:only-child) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -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" } %>
|
||||
</h1>
|
||||
<div class="card__description rich-text-content margin-block-start-half margin-block-end">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<%= mentions_prompt(@card.collection) %>
|
||||
<%= cards_prompt %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= 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 %>
|
||||
|
||||
Reference in New Issue
Block a user