diff --git a/frontend/src/components/Playlists.tsx b/frontend/src/components/Playlists.tsx index 93512f0..8bf346e 100644 --- a/frontend/src/components/Playlists.tsx +++ b/frontend/src/components/Playlists.tsx @@ -580,6 +580,21 @@ export default function Playlists({ canWrite }: { canWrite: boolean }) { )} +
{ + e.preventDefault(); + if (newName.trim()) createMut.mutate(newName.trim()); + }} + className="flex items-center gap-1.5 mb-3 pb-3 border-b border-border" + > + + setNewName(e.target.value)} + placeholder={t("playlists.newPlaylist")} + className="flex-1 min-w-0 bg-card border border-border rounded-md px-2 py-1 text-xs outline-none focus:border-accent" + /> + {playlists.length === 0 && !listQuery.isLoading && (
{t("playlists.noneYet")}
)} @@ -618,21 +633,6 @@ export default function Playlists({ canWrite }: { canWrite: boolean }) { ))} -
{ - e.preventDefault(); - if (newName.trim()) createMut.mutate(newName.trim()); - }} - className="flex items-center gap-1.5 mt-3 pt-3 border-t border-border" - > - - setNewName(e.target.value)} - placeholder={t("playlists.newPlaylist")} - className="flex-1 min-w-0 bg-card border border-border rounded-md px-2 py-1 text-xs outline-none focus:border-accent" - /> -