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,13 +67,6 @@ defmodule FirehoseWeb.MicroprintsLive do
|
|||||||
<% end %>
|
<% end %>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<%= if @expanded_path == path and source do %>
|
|
||||||
<.source_viewer
|
|
||||||
content={source}
|
|
||||||
highlighted_line={@highlighted_line}
|
|
||||||
language="elixir"
|
|
||||||
/>
|
|
||||||
<% else %>
|
|
||||||
<.microprint
|
<.microprint
|
||||||
microprint={microprint}
|
microprint={microprint}
|
||||||
width={200}
|
width={200}
|
||||||
@ -82,6 +75,13 @@ defmodule FirehoseWeb.MicroprintsLive do
|
|||||||
file_path={path}
|
file_path={path}
|
||||||
highlighted_line={@highlighted_line}
|
highlighted_line={@highlighted_line}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<%= if @expanded_path == path and source do %>
|
||||||
|
<.source_viewer
|
||||||
|
content={source}
|
||||||
|
highlighted_line={@highlighted_line}
|
||||||
|
language="elixir"
|
||||||
|
/>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="text-xs text-red-500 mt-1">
|
<div class="text-xs text-red-500 mt-1">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user