Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌸✨ Journal: The Entry#body form field fills the screen #1632

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>