Don't display media ALT in compact mode
This commit is contained in:
parent
f4f8b81f6c
commit
6f0bad30ac
|
@ -123,7 +123,7 @@ public struct StatusMediaPreviewView: View {
|
|||
.shimmering()
|
||||
}
|
||||
}
|
||||
if let alt = attachement.description {
|
||||
if let alt = attachement.description, !isCompact {
|
||||
Button {
|
||||
altTextDisplayed = alt
|
||||
isAltAlertDisplayed = true
|
||||
|
@ -184,7 +184,7 @@ public struct StatusMediaPreviewView: View {
|
|||
}
|
||||
.frame(width: isCompact ? imageMaxHeight : proxy.frame(in: .local).width)
|
||||
.frame(height: imageMaxHeight)
|
||||
if let alt = attachement.description {
|
||||
if let alt = attachement.description, !isCompact {
|
||||
Button {
|
||||
altTextDisplayed = alt
|
||||
isAltAlertDisplayed = true
|
||||
|
|
Loading…
Reference in New Issue