Show image name for posts

This commit is contained in:
Christoph Hagen 2025-01-13 21:54:53 +01:00
parent 864dc9a544
commit e69486895f

View File

@ -20,12 +20,16 @@ struct PostImagesView: View {
.cornerRadius(8)
.layoutPriority(1)
VStack {
HStack {
HStack(alignment: .top) {
Button(action: { remove(image) }) {
NavigationIcon(symbol: .trash, edge: .all)
}
.buttonStyle(.plain)
Spacer()
Text(image.id)
.padding(4)
.foregroundStyle(Color.white.opacity(0.8))
.background(RoundedRectangle(cornerRadius: 8).fill(Color.black.opacity(0.7)))
}
Spacer()
HStack {