From 714dc0b8cc86172c7c1def5b1bb86c841b136b30 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 4 Jul 2025 13:31:16 +0100 Subject: [PATCH] Use textarea for description --- lib/music_library_web/components/core_components.ex | 1 + .../live/scrobble_rules_live/form_component.ex | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex index 0e2d9a72..773aa3e6 100644 --- a/lib/music_library_web/components/core_components.ex +++ b/lib/music_library_web/components/core_components.ex @@ -38,6 +38,7 @@ defmodule MusicLibraryWeb.CoreComponents do defdelegate tabs(assigns), to: Fluxon.Components.Tabs defdelegate tabs_list(assigns), to: Fluxon.Components.Tabs defdelegate tabs_panel(assigns), to: Fluxon.Components.Tabs + defdelegate textarea(assigns), to: Fluxon.Components.Textarea @doc """ Renders a simple form. diff --git a/lib/music_library_web/live/scrobble_rules_live/form_component.ex b/lib/music_library_web/live/scrobble_rules_live/form_component.ex index 4f2eecff..cfe7a83f 100644 --- a/lib/music_library_web/live/scrobble_rules_live/form_component.ex +++ b/lib/music_library_web/live/scrobble_rules_live/form_component.ex @@ -52,9 +52,8 @@ defmodule MusicLibraryWeb.ScrobbleRulesLive.FormComponent do class="font-mono" /> - <.input + <.textarea field={@form[:description]} - type="textarea" label={gettext("Description (optional)")} placeholder={gettext("Add a description to help identify this rule")} />