Merge pull request #12 from ndarilek/cleaner-regions

Minor cleanup to make navigating by region easier.
This commit is contained in:
Chris McCord 2021-11-22 14:28:07 -05:00 committed by GitHub
commit a0e64ef901
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -9,7 +9,7 @@ defmodule LiveBeatsWeb.PlayerLive do
def render(assigns) do
~H"""
<!-- player -->
<div id="audio-player" phx-hook="AudioPlayer" class="w-full" >
<div id="audio-player" phx-hook="AudioPlayer" class="w-full" role="region" aria-label="Player" >
<div phx-update="ignore">
<audio></audio>
</div>

View file

@ -143,13 +143,13 @@
</div>
</div>
<.live_component module={LiveBeatsWeb.LayoutComponent} id="layout" />
<%= if @current_user do %>
<%= live_render(@socket, LiveBeatsWeb.PlayerLive, id: "player", session: %{}, sticky: true) %>
<% end %>
<main class="flex-1 relative z-0 overflow-y-auto focus:outline-none">
<.live_component module={LiveBeatsWeb.LayoutComponent} id="layout" />
<%= if @current_user do %>
<%= live_render(@socket, LiveBeatsWeb.PlayerLive, id: "player", session: %{}, sticky: true) %>
<% end %>
<.flash flash={@flash} kind={:info}/>
<.flash flash={@flash} kind={:error}/>
<.connection_status>