Skip to content

Commit

Permalink
only show the (blurred bg) label span if the label has come in
Browse files Browse the repository at this point in the history
  • Loading branch information
benswift committed Nov 1, 2024
1 parent 3f7706f commit fcaa339
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/imaginative_restoration_web/live/index_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ defmodule ImaginativeRestorationWeb.IndexLive do
pipeline_phase(@sketch) != :completed && "sketch-processing"
]}
/>
<span class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-4xl font-semibold px-2 py-1 text-white backdrop-blur-md rounded-sm">
<span
if={@sketch.label}
class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-4xl font-semibold px-2 py-1 text-white backdrop-blur-md rounded-sm"
>
<%= @sketch.label %>
</span>
</div>
Expand Down

0 comments on commit fcaa339

Please sign in to comment.