mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-27 18:21:02 +00:00
Fix
This commit is contained in:
parent
63bbecf1b8
commit
d517cc0f55
3 changed files with 3 additions and 3 deletions
|
@ -296,7 +296,7 @@ let routeUpdated = () => {
|
||||||
|
|
||||||
// Show progress bar on live navigation and form submits
|
// Show progress bar on live navigation and form submits
|
||||||
topbar.config({barColors: {0: "rgba(147, 51, 234, 1)"}, shadowColor: "rgba(0, 0, 0, .3)"})
|
topbar.config({barColors: {0: "rgba(147, 51, 234, 1)"}, shadowColor: "rgba(0, 0, 0, .3)"})
|
||||||
window.addEventListener("phx:page-loading-start", info => topbar.delayedShow(200))
|
window.addEventListener("phx:page-loading-start", info => topbar.delayedShow(350))
|
||||||
window.addEventListener("phx:page-loading-stop", info => topbar.hide())
|
window.addEventListener("phx:page-loading-stop", info => topbar.hide())
|
||||||
|
|
||||||
// Accessible routing
|
// Accessible routing
|
||||||
|
|
|
@ -14,7 +14,7 @@ defmodule LiveBeatsWeb.PlayerLive do
|
||||||
<div id="audio-ignore" phx-update="ignore">
|
<div id="audio-ignore" phx-update="ignore">
|
||||||
<audio></audio>
|
<audio></audio>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white dark:bg-gray-800 p-4">
|
<div class="bg-gray-800 p-4">
|
||||||
<div class="flex items-center space-x-3.5 sm:space-x-5 lg:space-x-3.5 xl:space-x-5">
|
<div class="flex items-center space-x-3.5 sm:space-x-5 lg:space-x-3.5 xl:space-x-5">
|
||||||
<div class="pr-5">
|
<div class="pr-5">
|
||||||
<div class="min-w-0 max-w-xs flex-col space-y-0.5">
|
<div class="min-w-0 max-w-xs flex-col space-y-0.5">
|
||||||
|
|
|
@ -430,7 +430,7 @@ defmodule LiveBeatsWeb.ProfileLive do
|
||||||
defp assign_presences(socket) do
|
defp assign_presences(socket) do
|
||||||
socket = assign(socket, presences_count: 0, presences: %{}, presence_ids: %{})
|
socket = assign(socket, presences_count: 0, presences: %{}, presence_ids: %{})
|
||||||
|
|
||||||
if profile = connected?(socket) && socket.assigns.profile do
|
if profile = socket.assigns.profile do
|
||||||
profile
|
profile
|
||||||
|> LiveBeatsWeb.Presence.list_profile_users()
|
|> LiveBeatsWeb.Presence.list_profile_users()
|
||||||
|> Enum.reduce(socket, fn {_, presence}, acc -> assign_presence(acc, presence) end)
|
|> Enum.reduce(socket, fn {_, presence}, acc -> assign_presence(acc, presence) end)
|
||||||
|
|
Loading…
Reference in a new issue