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:
1 parent
6a1bf33f31
commit
43cf11465e
2 files changed
+11
-26
No files matched your search
@@ -128,7 +128,7 @@ fun PlaylistDetailScreen(
|
|||||||
tint = Color.White, modifier = Modifier.size(18.dp),
|
tint = Color.White, modifier = Modifier.size(18.dp),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
// Rename + Cover + Delete buttons (top-right)
|
// Edit + Delete buttons (top-right)
|
||||||
Row(
|
Row(
|
||||||
Modifier
|
Modifier
|
||||||
.statusBarsPadding()
|
.statusBarsPadding()
|
||||||
@@ -144,18 +144,7 @@ fun PlaylistDetailScreen(
|
|||||||
.clickable { showRenameDialog = true },
|
.clickable { showRenameDialog = true },
|
||||||
contentAlignment = Alignment.Center,
|
contentAlignment = Alignment.Center,
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Default.Edit, "Umbenennen",
|
Icon(Icons.Default.Edit, "Bearbeiten",
|
||||||
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",
|
|
||||||
tint = Color.White, modifier = Modifier.size(18.dp))
|
tint = Color.White, modifier = Modifier.size(18.dp))
|
||||||
}
|
}
|
||||||
Box(
|
Box(
|
||||||
@@ -303,16 +292,14 @@ fun PlaylistDetailScreen(
|
|||||||
),
|
),
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
)
|
)
|
||||||
if (!pl.coverArt.isNullOrBlank()) {
|
TextButton(
|
||||||
TextButton(
|
onClick = { showRenameDialog = false; imagePicker.launch("image/*") },
|
||||||
onClick = { vm.removeCover(); showRenameDialog = false },
|
modifier = Modifier.fillMaxWidth(),
|
||||||
modifier = Modifier.fillMaxWidth(),
|
) {
|
||||||
) {
|
Icon(Icons.Default.AddAPhoto, null,
|
||||||
Icon(Icons.Default.HideImage, null,
|
tint = NsAccent, modifier = Modifier.size(16.dp))
|
||||||
tint = NsOnSurface2, modifier = Modifier.size(16.dp))
|
Spacer(Modifier.width(6.dp))
|
||||||
Spacer(Modifier.width(6.dp))
|
Text("Cover hochladen", color = NsAccent, fontSize = 13.sp)
|
||||||
Text("Cover entfernen", color = NsOnSurface2, fontSize = 13.sp)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-3
@@ -917,9 +917,7 @@
|
|||||||
<button class="edit-pl-cover-btn" onclick="document.getElementById('edit-pl-file').click()" title="Bild hochladen">
|
<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>
|
<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>
|
||||||
<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>
|
</div>
|
||||||
<input type="file" id="edit-pl-file" accept="image/*" style="display:none" onchange="editPlCoverSelected(this)">
|
<input type="file" id="edit-pl-file" accept="image/*" style="display:none" onchange="editPlCoverSelected(this)">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user