diff --git a/src/lib/services/miniplayerService.ts b/src/lib/services/miniplayerService.ts
index ed1f04fd1..df6daac8e 100644
--- a/src/lib/services/miniplayerService.ts
+++ b/src/lib/services/miniplayerService.ts
@@ -11,8 +11,8 @@ import { getCurrentWindow } from '@tauri-apps/api/window';
import { goto } from '$app/navigation';
// Miniplayer dimensions
-const MINIPLAYER_WIDTH = 300;
-const MINIPLAYER_HEIGHT = 140;
+const MINIPLAYER_WIDTH = 400;
+const MINIPLAYER_HEIGHT = 200;
// Original app minimum size (from tauri.conf.json)
const ORIGINAL_MIN_WIDTH = 800;
diff --git a/src/routes/miniplayer/+layout.svelte b/src/routes/miniplayer/+layout.svelte
index fdef97a71..2ac1a5089 100644
--- a/src/routes/miniplayer/+layout.svelte
+++ b/src/routes/miniplayer/+layout.svelte
@@ -28,7 +28,7 @@
height: 100vh;
background: transparent;
overflow: hidden;
- padding: 8px;
+ padding: 4px;
box-sizing: border-box;
}
diff --git a/src/routes/miniplayer/+page.svelte b/src/routes/miniplayer/+page.svelte
index 12ac157d0..cd24ac741 100644
--- a/src/routes/miniplayer/+page.svelte
+++ b/src/routes/miniplayer/+page.svelte
@@ -73,15 +73,19 @@
unsubscribeQueue = subscribeQueue(() => {
const qState = getQueueState();
- isShuffle = qState.isShuffle;
- repeatMode = qState.repeatMode;
- queueCount = qState.tracks.length;
+ if (qState) {
+ isShuffle = qState.isShuffle ?? false;
+ repeatMode = qState.repeatMode ?? 'off';
+ queueCount = qState.tracks?.length ?? 0;
+ }
});
const qState = getQueueState();
- isShuffle = qState.isShuffle;
- repeatMode = qState.repeatMode;
- queueCount = qState.tracks.length;
+ if (qState) {
+ isShuffle = qState.isShuffle ?? false;
+ repeatMode = qState.repeatMode ?? 'off';
+ queueCount = qState.tracks?.length ?? 0;
+ }
});
onDestroy(() => {
@@ -266,23 +270,23 @@
onclick={handleToggleShuffle}
title="Shuffle"
>
-
+
@@ -303,7 +307,7 @@
onclick={handleOpenQueue}
title="Queue ({queueCount})"
>
-
+
@@ -327,16 +331,18 @@
/* Album Art */
.artwork-section {
- width: 124px;
- height: 124px;
+ width: 180px;
flex-shrink: 0;
+ padding: 6px;
+ display: flex;
+ align-items: center;
}
.artwork {
width: 100%;
height: 100%;
object-fit: cover;
- border-radius: 6px 0 0 6px;
+ border-radius: 6px;
}
.artwork-placeholder {
@@ -347,7 +353,7 @@
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.2);
- border-radius: 6px 0 0 6px;
+ border-radius: 6px;
}
/* Content */
@@ -355,7 +361,7 @@
flex: 1;
display: flex;
flex-direction: column;
- padding: 8px 10px;
+ padding: 10px 12px 10px 6px;
min-width: 0;
justify-content: space-between;
}
@@ -376,7 +382,7 @@
.title {
font-weight: 600;
- font-size: 11px;
+ font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -385,11 +391,12 @@
}
.artist {
- font-size: 10px;
+ font-size: 11px;
color: rgba(255, 255, 255, 0.5);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
+ margin-top: 2px;
}
.window-controls {
@@ -465,15 +472,15 @@
display: flex;
align-items: center;
justify-content: center;
- gap: 2px;
+ gap: 4px;
}
.ctrl-btn {
display: flex;
align-items: center;
justify-content: center;
- width: 24px;
- height: 24px;
+ width: 28px;
+ height: 28px;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.7);
@@ -496,8 +503,8 @@
}
.ctrl-btn.play {
- width: 28px;
- height: 28px;
+ width: 34px;
+ height: 34px;
background: rgba(255, 255, 255, 0.1);
}