From 2f50ab79274cec9161e0f9abfa16243f2bd18a7d Mon Sep 17 00:00:00 2001 From: Mykolas Mankevicius Date: Wed, 2 Feb 2022 22:48:26 +0200 Subject: [PATCH] Fix visual bug with title_bar --- lib/live_beats_web/live/live_helpers.ex | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/live_beats_web/live/live_helpers.ex b/lib/live_beats_web/live/live_helpers.ex index e382db2..6147730 100644 --- a/lib/live_beats_web/live/live_helpers.ex +++ b/lib/live_beats_web/live/live_helpers.ex @@ -451,15 +451,17 @@ defmodule LiveBeatsWeb.LiveHelpers do ~H""" -
+

<%= render_slot(@inner_block) %>

-
- <%= render_slot(@actions) %> -
+ <%= if Enum.count(assigns.actions) > 0 do %> +
+ <%= render_slot(@actions) %> +
+ <% end %>
""" end