diff --git a/src/lib/components/views/PlaylistManagerView.svelte b/src/lib/components/views/PlaylistManagerView.svelte
index 9d6a0d5a0..d1718d998 100644
--- a/src/lib/components/views/PlaylistManagerView.svelte
+++ b/src/lib/components/views/PlaylistManagerView.svelte
@@ -1,7 +1,7 @@
@@ -449,6 +603,17 @@
Playlist Manager
+
+ {#if currentFolderId && currentFolder}
+
+
+
+ {currentFolder.name}
+
+ {/if}
+
@@ -550,11 +715,24 @@
{/if}
- {displayPlaylists.length} playlists
+ {#if !currentFolderId}
+
+ {/if}
+
+
+ {#if !currentFolderId && folders.length > 0}
+ {folders.length} folders, {displayPlaylists.length} playlists
+ {:else}
+ {displayPlaylists.length} playlists
+ {/if}
+
{#if sort === 'custom'}
- Drag playlists to reorder them
+ Drag playlists to reorder them{#if !currentFolderId && folders.length > 0}, or drop onto a folder to move{/if}
{/if}
@@ -563,11 +741,72 @@
Loading playlists...
- {:else if displayPlaylists.length === 0}
-
-
{filter === 'hidden' ? 'No hidden playlists' : filter === 'visible' ? 'No visible playlists' : 'No playlists yet'}
-
- {:else if viewMode === 'grid'}
+ {:else}
+
+ {#if !currentFolderId && folders.length > 0}
+
+
+
+ {#if !foldersCollapsed}
+
+ {#each folders as folder (folder.id)}
+
handleFolderDragOver(e, folder.id)}
+ ondragleave={handleFolderDragLeave}
+ ondrop={(e) => handleFolderDrop(e, folder.id)}
+ >
+
navigateToFolder(folder.id)}
+ onkeydown={(e) => e.key === 'Enter' && navigateToFolder(folder.id)}
+ >
+
+
+
+
{folder.name}
+
{getPlaylistCountInFolder(folder.id)} playlists
+
+
+
+ {/each}
+
+ {/if}
+
+ {/if}
+
+
+ {#if displayPlaylists.length === 0 && (currentFolderId || folders.length === 0)}
+
+
{filter === 'hidden' ? 'No hidden playlists' : filter === 'visible' ? 'No visible playlists' : currentFolderId ? 'No playlists in this folder' : 'No playlists yet'}
+
+ {:else if displayPlaylists.length > 0}
+ {#if !currentFolderId && folders.length > 0}
+
+ {/if}
+
+ {#if viewMode === 'grid'}
{#each displayPlaylists as playlist (playlist.id)}
@@ -759,9 +998,62 @@
{/each}
+ {/if}
+ {/if}
{/if}
+
+{#if showFolderModal}
+
+
e.stopPropagation()} role="dialog" aria-modal="true">
+
{editingFolder ? 'Edit Folder' : 'New Folder'}
+
+
+ e.key === 'Enter' && handleSaveFolder()}
+ />
+
+
+
+ {#if editingFolder}
+
+ {/if}
+
+
+
+
+
+
+
+{/if}
+
{#if editingPlaylist}