mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +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
|
||||
}
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture { onTap() }
|
||||
.accessibilityElement(children: .ignore)
|
||||
.accessibilityLabel(item.filename)
|
||||
} scanningContent: {
|
||||
@@ -46,6 +44,9 @@ struct GalleryItemTileView: View {
|
||||
overflowOverlay
|
||||
}
|
||||
}
|
||||
// Tappable in every scan state, so that an unsafe item can't hide the rest of the gallery.
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture { onTap() }
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
|
||||
@@ -107,7 +107,7 @@ nonisolated struct RoomMessageEventStringBuilder {
|
||||
}
|
||||
|
||||
private func buildMessage(for style: Style, caption: String?, type: String) -> AttributedString {
|
||||
guard let caption else {
|
||||
guard let caption, !caption.isBlank else {
|
||||
return AttributedString(type)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user