From 2f50ab79274cec9161e0f9abfa16243f2bd18a7d Mon Sep 17 00:00:00 2001 From: Mykolas Mankevicius Date: Wed, 2 Feb 2022 22:48:26 +0200 Subject: [PATCH 1/3] 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 From b542a6f8a31ebf749befbf116c308a57a4fa96a3 Mon Sep 17 00:00:00 2001 From: Mykolas Mankevicius Date: Wed, 2 Feb 2022 22:48:47 +0200 Subject: [PATCH 2/3] Add spacing to SettingLive form on mobile screen --- lib/live_beats_web/live/settings_live.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/live_beats_web/live/settings_live.ex b/lib/live_beats_web/live/settings_live.ex index d18c529..c5736e1 100644 --- a/lib/live_beats_web/live/settings_live.ex +++ b/lib/live_beats_web/live/settings_live.ex @@ -9,7 +9,7 @@ defmodule LiveBeatsWeb.SettingsLive do Profile Settings -
+
<.form let={f} for={@changeset} phx-change="validate" phx-submit="save" class="space-y-8 divide-y divide-gray-200">
From 8fd4c87a84fd3660b0b665e140eb12ee6074a3b3 Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Wed, 2 Feb 2022 15:57:23 -0500 Subject: [PATCH 3/3] Update lib/live_beats_web/live/live_helpers.ex --- lib/live_beats_web/live/live_helpers.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/live_beats_web/live/live_helpers.ex b/lib/live_beats_web/live/live_helpers.ex index 6147730..9a5359c 100644 --- a/lib/live_beats_web/live/live_helpers.ex +++ b/lib/live_beats_web/live/live_helpers.ex @@ -457,7 +457,7 @@ defmodule LiveBeatsWeb.LiveHelpers do <%= render_slot(@inner_block) %>
- <%= if Enum.count(assigns.actions) > 0 do %> + <%= if Enum.count(@actions) > 0 do %>
<%= render_slot(@actions) %>