Skip to content

Commit

Permalink
🌸 Journal: The Entry#body form field fills the screen (#1632)
Browse files Browse the repository at this point in the history
- https://github.com/zinc-collective/convene/issues/1566

I was doing some writing and noticed that I tend to drag the text area
to make it bigger.

Now I won't have to do that!
  • Loading branch information
zspencer authored Jul 6, 2023
1 parent 183a114 commit 9b9d38d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/furniture/journal/entries/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= form_with model: entry.location do |f| %>
<%= form_with model: entry.location, class: "flex flex-col grow" do |f| %>
<%= render "text_field", { attribute: :headline, form: f} %>
<%= render "text_area", { attribute: :body, form: f} %>
<%= render "text_area", { attribute: :body, form: f, field_classes: "grow", container_classes: "grow flex flex-col"} %>
<%= render "datetime_field", { attribute: :published_at, form: f} %>
<%= f.submit %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/application/_text_area.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<div class="<%= local_assigns[:container_classes]%>">
<%= form.label attribute %>
<%= form.text_area attribute %>
<%= form.text_area attribute, class: local_assigns[:field_classes] %>
<%= render partial: "error", locals: { model: form.object, attribute: attribute } %>
</div>

0 comments on commit 9b9d38d

Please sign in to comment.