mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
fix some bugs: 1. caption being displayed when blank 2. gallery should be tapped even when scanning fails
This commit is contained in:
@@ -32,8 +32,6 @@ struct GalleryItemTileView: View {
|
|||||||
videoOverlay
|
videoOverlay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.contentShape(Rectangle())
|
|
||||||
.onTapGesture { onTap() }
|
|
||||||
.accessibilityElement(children: .ignore)
|
.accessibilityElement(children: .ignore)
|
||||||
.accessibilityLabel(item.filename)
|
.accessibilityLabel(item.filename)
|
||||||
} scanningContent: {
|
} scanningContent: {
|
||||||
@@ -46,6 +44,9 @@ struct GalleryItemTileView: View {
|
|||||||
overflowOverlay
|
overflowOverlay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Tappable in every scan state, so that an unsafe item can't hide the rest of the gallery.
|
||||||
|
.contentShape(Rectangle())
|
||||||
|
.onTapGesture { onTap() }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ nonisolated struct RoomMessageEventStringBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func buildMessage(for style: Style, caption: String?, type: String) -> AttributedString {
|
private func buildMessage(for style: Style, caption: String?, type: String) -> AttributedString {
|
||||||
guard let caption else {
|
guard let caption, !caption.isBlank else {
|
||||||
return AttributedString(type)
|
return AttributedString(type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user