From 43aaa6bdbef488776d1b12f12f5df5a58b02799c Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Fri, 15 May 2026 16:13:21 +0100 Subject: [PATCH] fix(microprints): always show microprint SVG, source below when expanded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Layout: button → microprint (always) → source viewer (conditional) --- app/lib/firehose_web/live/microprints_live.ex | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/lib/firehose_web/live/microprints_live.ex b/app/lib/firehose_web/live/microprints_live.ex index 7eaeeb2..69542ed 100644 --- a/app/lib/firehose_web/live/microprints_live.ex +++ b/app/lib/firehose_web/live/microprints_live.ex @@ -67,21 +67,21 @@ defmodule FirehoseWeb.MicroprintsLive do <% end %> + <.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 %>