fix: playlist edit — cover upload in pencil dialog, remove cover-remove button

Android: camera hero button removed; cover upload moved into edit dialog.
Web: trash icon removed from cover actions in edit modal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-06-18 20:12:27 +02:00
1 parent 6a1bf33f31
commit 43cf11465e
2 files changed
+7 -22

No files matched your search

@@ -128,7 +128,7 @@ fun PlaylistDetailScreen(
tint = Color.White, modifier = Modifier.size(18.dp),
)
}
// Rename + Cover + Delete buttons (top-right)
// Edit + Delete buttons (top-right)
Row(
Modifier
.statusBarsPadding()
@@ -144,18 +144,7 @@ fun PlaylistDetailScreen(
.clickable { showRenameDialog = true },
contentAlignment = Alignment.Center,
) {
Icon(Icons.Default.Edit, "Umbenennen",
tint = Color.White, modifier = Modifier.size(18.dp))
}
Box(
Modifier
.size(36.dp)
.clip(CircleShape)
.background(Color.Black.copy(alpha = 0.45f))
.clickable { imagePicker.launch("image/*") },
contentAlignment = Alignment.Center,
) {
Icon(Icons.Default.AddAPhoto, "Cover hochladen",
Icon(Icons.Default.Edit, "Bearbeiten",
tint = Color.White, modifier = Modifier.size(18.dp))
}
Box(
@@ -303,16 +292,14 @@ fun PlaylistDetailScreen(
),
modifier = Modifier.fillMaxWidth(),
)
if (!pl.coverArt.isNullOrBlank()) {
TextButton(
onClick = { vm.removeCover(); showRenameDialog = false },
onClick = { showRenameDialog = false; imagePicker.launch("image/*") },
modifier = Modifier.fillMaxWidth(),
) {
Icon(Icons.Default.HideImage, null,
tint = NsOnSurface2, modifier = Modifier.size(16.dp))
Icon(Icons.Default.AddAPhoto, null,
tint = NsAccent, modifier = Modifier.size(16.dp))
Spacer(Modifier.width(6.dp))
Text("Cover entfernen", color = NsOnSurface2, fontSize = 13.sp)
}
Text("Cover hochladen", color = NsAccent, fontSize = 13.sp)
}
}
},
+1 -3
View File
@@ -917,9 +917,7 @@
<button class="edit-pl-cover-btn" onclick="document.getElementById('edit-pl-file').click()" title="Bild hochladen">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
</button>
<button class="edit-pl-cover-btn" onclick="editPlRemoveCover()" title="Bild entfernen">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6"/><path d="M14 11v6"/></svg>
</button>
</div>
<input type="file" id="edit-pl-file" accept="image/*" style="display:none" onchange="editPlCoverSelected(this)">
</div>