This commit is contained in:
Chris McCord 2024-06-04 10:04:53 -04:00
parent 63bbecf1b8
commit d517cc0f55
3 changed files with 3 additions and 3 deletions

View file

@ -296,7 +296,7 @@ let routeUpdated = () => {
// Show progress bar on live navigation and form submits
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())
// Accessible routing

View file

@ -14,7 +14,7 @@ defmodule LiveBeatsWeb.PlayerLive do
<div id="audio-ignore" phx-update="ignore">
<audio></audio>
</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="pr-5">
<div class="min-w-0 max-w-xs flex-col space-y-0.5">

View file

@ -430,7 +430,7 @@ defmodule LiveBeatsWeb.ProfileLive do
defp assign_presences(socket) do
socket = assign(socket, presences_count: 0, presences: %{}, presence_ids: %{})
if profile = connected?(socket) && socket.assigns.profile do
if profile = socket.assigns.profile do
profile
|> LiveBeatsWeb.Presence.list_profile_users()
|> Enum.reduce(socket, fn {_, presence}, acc -> assign_presence(acc, presence) end)