From 72875c20d25b6f43cc5857c257a7dc3e060737d5 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Mon, 31 Mar 2025 22:01:38 +0300 Subject: [PATCH] Update the input type to textarea for the description field. --- .../live/author_live/form_component.ex | 4 ++-- .../live/book_live/form_component.ex | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/decentralised_book_index_web/live/author_live/form_component.ex b/lib/decentralised_book_index_web/live/author_live/form_component.ex index b1fc310..5658ec0 100644 --- a/lib/decentralised_book_index_web/live/author_live/form_component.ex +++ b/lib/decentralised_book_index_web/live/author_live/form_component.ex @@ -21,7 +21,7 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.FormComponent do <.input field={@form[:avatar_url]} type="text" label="Cover image url" /> <.input field={@form[:description]} - type="text" + type="textarea" label="Description" /> <.input @@ -35,7 +35,7 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.FormComponent do <.input field={@form[:avatar_url]} type="text" label="Cover image url" /> <.input field={@form[:description]} - type="text" + type="textarea" label="Description" /> <.input diff --git a/lib/decentralised_book_index_web/live/book_live/form_component.ex b/lib/decentralised_book_index_web/live/book_live/form_component.ex index 53f2e8b..e6e1245 100644 --- a/lib/decentralised_book_index_web/live/book_live/form_component.ex +++ b/lib/decentralised_book_index_web/live/book_live/form_component.ex @@ -22,7 +22,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.FormComponent do <.input field={@form[:cover_image_url]} type="text" label="Cover image url" /> <.input field={@form[:description]} - type="text" + type="textarea" label="Description" /> <.bids_inputs form={@form} myself={@myself} />