From b598a179fccec8d124dffd8af7f4ecf23fc993ba Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sat, 12 Jul 2025 17:37:38 +0100 Subject: [PATCH] Improve markup for color inputs --- .../components/form_component.ex | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/lib/music_library_web/components/form_component.ex b/lib/music_library_web/components/form_component.ex index 098e8e31..96e64685 100644 --- a/lib/music_library_web/components/form_component.ex +++ b/lib/music_library_web/components/form_component.ex @@ -59,27 +59,25 @@ defmodule MusicLibraryWeb.FormComponent do />
-
- - {gettext("Dominant Colors")} - -
-
- - - {String.upcase(color)} - -
+ <.label for="dominant_colors"> + {gettext("Dominant Colors")} + +
+
+ + + {String.upcase(color)} +
-
+
<.label for={@uploads.cover_data.ref}>