feat(ui): music sayfasında mini player'ı gizle
This commit is contained in:
@@ -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>
|
||||
|
||||
<MiniPlayer />
|
||||
{#if !($location?.pathname || "").startsWith("/music")}
|
||||
<MiniPlayer />
|
||||
{/if}
|
||||
<Toast />
|
||||
|
||||
<!-- Sidebar dışına tıklayınca kapanma -->
|
||||
|
||||
Reference in New Issue
Block a user