From 8e8bc4748ca54c47607fd4043a4135796be4a9a4 Mon Sep 17 00:00:00 2001 From: Zee Spencer <50284+zspencer@users.noreply.github.com> Date: Mon, 3 Jul 2023 21:30:49 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B8=20`Journal`:=20The=20`Entry#body`?= =?UTF-8?q?=20form=20field=20fills=20the=20screen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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! --- app/furniture/journal/entries/_form.html.erb | 4 ++-- app/views/application/_text_area.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/furniture/journal/entries/_form.html.erb b/app/furniture/journal/entries/_form.html.erb index 9cb780f64..42186983f 100644 --- a/app/furniture/journal/entries/_form.html.erb +++ b/app/furniture/journal/entries/_form.html.erb @@ -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 %> diff --git a/app/views/application/_text_area.html.erb b/app/views/application/_text_area.html.erb index 68ac1daf6..c443ee2e5 100644 --- a/app/views/application/_text_area.html.erb +++ b/app/views/application/_text_area.html.erb @@ -1,5 +1,5 @@ -