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,21 +67,21 @@ defmodule FirehoseWeb.MicroprintsLive do
<% end %> <% end %>
</button> </button>
<.microprint
microprint={microprint}
width={200}
max_height={100}
clickable={true}
file_path={path}
highlighted_line={@highlighted_line}
/>
<%= if @expanded_path == path and source do %> <%= if @expanded_path == path and source do %>
<.source_viewer <.source_viewer
content={source} content={source}
highlighted_line={@highlighted_line} highlighted_line={@highlighted_line}
language="elixir" language="elixir"
/> />
<% else %>
<.microprint
microprint={microprint}
width={200}
max_height={100}
clickable={true}
file_path={path}
highlighted_line={@highlighted_line}
/>
<% end %> <% end %>
<% else %> <% else %>
<div class="text-xs text-red-500 mt-1"> <div class="text-xs text-red-500 mt-1">