remove reduntand global player

This commit is contained in:
2026-02-06 04:01:22 -08:00
parent b25110dfe3
commit 3418d19a57

View File

@@ -21,21 +21,15 @@
{@render children()} {@render children()}
</main> </main>
<!-- Desktop sidebar column (in normal flow) --> <!-- Desktop sidebar column (in normal flow).
<aside class="hidden lg:block"> Reserve space in the grid, but render the player only once below. -->
<ClientOnly showFallback={false}> <aside class="hidden lg:block"></aside>
{#snippet children()}
<GlobalPlayer />
{/snippet}
</ClientOnly>
</aside>
</div> </div>
<!-- Mobile player (client-only, overlays via fixed positioning inside GlobalPlayer) --> <!-- Single GlobalPlayer instance (client-only).
<div class="lg:hidden"> It renders either the desktop sidebar UI or the mobile bar/drawer internally. -->
<ClientOnly showFallback={false}> <ClientOnly showFallback={false}>
{#snippet children()} {#snippet children()}
<GlobalPlayer /> <GlobalPlayer />
{/snippet} {/snippet}
</ClientOnly> </ClientOnly>
</div>