1
0
Fork 0
mirror of https://github.com/Dimillian/IceCubesApp.git synced 2025-01-13 17:45:28 +00:00

Don't display media ALT in compact mode

This commit is contained in:
Thomas Ricouard 2023-01-03 13:13:03 +01:00
parent f4f8b81f6c
commit 6f0bad30ac

View file

@ -123,7 +123,7 @@ public struct StatusMediaPreviewView: View {
.shimmering() .shimmering()
} }
} }
if let alt = attachement.description { if let alt = attachement.description, !isCompact {
Button { Button {
altTextDisplayed = alt altTextDisplayed = alt
isAltAlertDisplayed = true isAltAlertDisplayed = true
@ -184,7 +184,7 @@ public struct StatusMediaPreviewView: View {
} }
.frame(width: isCompact ? imageMaxHeight : proxy.frame(in: .local).width) .frame(width: isCompact ? imageMaxHeight : proxy.frame(in: .local).width)
.frame(height: imageMaxHeight) .frame(height: imageMaxHeight)
if let alt = attachement.description { if let alt = attachement.description, !isCompact {
Button { Button {
altTextDisplayed = alt altTextDisplayed = alt
isAltAlertDisplayed = true isAltAlertDisplayed = true