feat(ui): music sayfasında mini player'ı gizle

This commit is contained in:
2026-02-03 16:49:01 +03:00
parent 1774f681be
commit e66ace9ed5

View File

@@ -1,5 +1,6 @@
<script>
import { Router, Route } from "svelte-routing";
import { useLocation } from "svelte-routing";
import { onMount } from "svelte";
import Sidebar from "./components/Sidebar.svelte";
import Topbar from "./components/Topbar.svelte";
@@ -28,6 +29,7 @@
let menuOpen = false;
let wsCounts;
let refreshTimer = null;
const location = useLocation();
const scheduleMediaRefresh = () => {
if (refreshTimer) return;
@@ -163,7 +165,9 @@
<Route path="/trash" component={Trash} />
</div>
{#if !($location?.pathname || "").startsWith("/music")}
<MiniPlayer />
{/if}
<Toast />
<!-- Sidebar dışına tıklayınca kapanma -->