mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-26 01:40:59 +00:00
chore: autoformat in action
This commit is contained in:
parent
beb91aabe0
commit
ffe444d912
2 changed files with 20 additions and 4 deletions
|
@ -391,10 +391,12 @@ defmodule LiveBeatsWeb.CoreComponents do
|
|||
attr :rest, :global
|
||||
|
||||
slot :title
|
||||
|
||||
slot :confirm do
|
||||
attr :type, :string
|
||||
attr :form, :string
|
||||
end
|
||||
|
||||
slot :cancel
|
||||
|
||||
def modal(assigns) do
|
||||
|
@ -532,11 +534,19 @@ defmodule LiveBeatsWeb.CoreComponents do
|
|||
def button(%{patch: _} = assigns) do
|
||||
~H"""
|
||||
<%= if @primary do %>
|
||||
<.link patch={@patch} class="order-0 inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:order-1 sm:ml-3" {@rest}>
|
||||
<.link
|
||||
patch={@patch}
|
||||
class="order-0 inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:order-1 sm:ml-3"
|
||||
{@rest}
|
||||
>
|
||||
<%= render_slot(@inner_block) %>
|
||||
</.link>
|
||||
<% else %>
|
||||
<.link patch={@patch} class="order-1 inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:order-0 sm:ml-0 lg:ml-3" {assigns_to_attributes(assigns, [:primary, :patch])}>
|
||||
<.link
|
||||
patch={@patch}
|
||||
class="order-1 inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 sm:order-0 sm:ml-0 lg:ml-3"
|
||||
{assigns_to_attributes(assigns, [:primary, :patch])}
|
||||
>
|
||||
<%= render_slot(@inner_block) %>
|
||||
</.link>
|
||||
<% end %>
|
||||
|
|
|
@ -37,7 +37,8 @@ defmodule LiveBeatsWeb.ProfileLive do
|
|||
</span>
|
||||
</div>
|
||||
<.link href={@profile.external_homepage_url} target="_blank" class="text-sm text-gray-600">
|
||||
<.icon name={:code_bracket} /> <span class=""><%= url_text(@profile.external_homepage_url) %></span>
|
||||
<.icon name={:code_bracket} />
|
||||
<span class=""><%= url_text(@profile.external_homepage_url) %></span>
|
||||
</.link>
|
||||
</div>
|
||||
<:actions>
|
||||
|
@ -150,7 +151,12 @@ defmodule LiveBeatsWeb.ProfileLive do
|
|||
>
|
||||
<span :if={song.status == :playing} class="flex pt-1 relative mr-2 w-4">
|
||||
<span class="w-3 h-3 animate-ping bg-purple-400 rounded-full absolute"></span>
|
||||
<.icon name={:speaker_wave} class="h-5 w-5 -mt-1 -ml-1" aria-label="Playing" role="button" />
|
||||
<.icon
|
||||
name={:speaker_wave}
|
||||
class="h-5 w-5 -mt-1 -ml-1"
|
||||
aria-label="Playing"
|
||||
role="button"
|
||||
/>
|
||||
</span>
|
||||
<span :if={song.status == :paused} class="flex pt-1 relative mr-2 w-4">
|
||||
<.icon
|
||||
|
|
Loading…
Reference in a new issue