From 2549a8db2a0077b3bc9c7a6c5c5ac2aeb47a76ee Mon Sep 17 00:00:00 2001 From: Ro Date: Sat, 26 Oct 2024 17:33:04 -0500 Subject: [PATCH] feat: Visually indicate that avatar is editable --- lib/postland_web/live/profile_live.ex | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/postland_web/live/profile_live.ex b/lib/postland_web/live/profile_live.ex index 76ae346..7458621 100644 --- a/lib/postland_web/live/profile_live.ex +++ b/lib/postland_web/live/profile_live.ex @@ -7,14 +7,25 @@ defmodule PostlandWeb.ProfileLive do def render(assigns) do ~H"""
-
+
+
+ <.icon name="hero-pencil" class="text-violet-100" /> +
<.form for={@form} phx-submit="avatar" phx-change="avatar"> - <.live_file_input :if={@editing} upload={@uploads.avatar} /> + <.live_file_input + :if={@editing} + id="avatar-upload" + class="opacity-0 absolute top-0 left-0 bottom-0 right-0" + upload={@uploads.avatar} + />