feat(ui): create idiomatic UI matching previous katbin iteration

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2021-08-13 06:33:43 +05:30
1 parent c6c54347a7
commit 13728f2ef8
7 files changed
+33 -10

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ defmodule KetbinWeb.ErrorHelpers do
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:span, translate_error(error),
class: "invalid-feedback",
class: "absolute top-0 left-0 px-6 py-4",
phx_feedback_for: input_name(form, field)
)
end)