Fix visual bug with title_bar

This commit is contained in:
Mykolas Mankevicius 2022-02-02 22:48:26 +02:00
parent 6d39e774e6
commit 2f50ab7927

View file

@ -451,15 +451,17 @@ defmodule LiveBeatsWeb.LiveHelpers do
~H"""
<!-- Page title & actions -->
<div class="border-b border-gray-200 px-4 py-4 sm:flex sm:items-center sm:justify-between sm:px-6 lg:px-8 h-16">
<div class="border-b border-gray-200 px-4 py-4 sm:flex sm:items-center sm:justify-between sm:px-6 lg:px-8 sm:h-16">
<div class="flex-1 min-w-0">
<h1 class="text-lg font-medium leading-6 text-gray-900 sm:truncate focus:outline-none">
<%= render_slot(@inner_block) %>
</h1>
</div>
<div class="mt-4 flex sm:mt-0 sm:ml-4">
<%= if Enum.count(assigns.actions) > 0 do %>
<div class="mt-4 flex sm:mt-0 sm:ml-4 space-x-4">
<%= render_slot(@actions) %>
</div>
<% end %>
</div>
"""
end