fix(microprints): always show microprint SVG, source below when expanded
Layout: button → microprint (always) → source viewer (conditional)
This commit is contained in:
parent
aaf4c6a2c7
commit
43aaa6bdbe
@ -67,21 +67,21 @@ defmodule FirehoseWeb.MicroprintsLive do
|
||||
<% end %>
|
||||
</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 %>
|
||||
<.source_viewer
|
||||
content={source}
|
||||
highlighted_line={@highlighted_line}
|
||||
language="elixir"
|
||||
/>
|
||||
<% else %>
|
||||
<.microprint
|
||||
microprint={microprint}
|
||||
width={200}
|
||||
max_height={100}
|
||||
clickable={true}
|
||||
file_path={path}
|
||||
highlighted_line={@highlighted_line}
|
||||
/>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div class="text-xs text-red-500 mt-1">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user