fix(microprints): always show microprint SVG, source below when expanded

Layout: button → microprint (always) → source viewer (conditional)
This commit is contained in:
Willem van den Ende 2026-05-15 16:13:21 +01:00
parent aaf4c6a2c7
commit 43aaa6bdbe

View File

@ -67,13 +67,6 @@ defmodule FirehoseWeb.MicroprintsLive do
<% end %>
</button>
<%= if @expanded_path == path and source do %>
<.source_viewer
content={source}
highlighted_line={@highlighted_line}
language="elixir"
/>
<% else %>
<.microprint
microprint={microprint}
width={200}
@ -82,6 +75,13 @@ defmodule FirehoseWeb.MicroprintsLive do
file_path={path}
highlighted_line={@highlighted_line}
/>
<%= if @expanded_path == path and source do %>
<.source_viewer
content={source}
highlighted_line={@highlighted_line}
language="elixir"
/>
<% end %>
<% else %>
<div class="text-xs text-red-500 mt-1">