Skip to content

Commit

Permalink
open sensitive in twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
seiko committed Dec 30, 2021
1 parent ec97ee5 commit cb3282c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fun StatusMediaComponent(
modifier = Modifier
.weight(1f)
.fillMaxSize(),
sensitive = sensitive,
sensitive = sensitive && status.platformType === PlatformType.Mastodon,
onClick = onItemClick,
)
}
Expand All @@ -148,7 +148,7 @@ fun StatusMediaComponent(
modifier = Modifier
.weight(1f)
.fillMaxSize(),
sensitive = sensitive,
sensitive = sensitive && status.platformType === PlatformType.Mastodon,
onClick = onItemClick,
)
if (it != media.last()) {
Expand All @@ -169,7 +169,7 @@ fun StatusMediaComponent(
StatusMediaPreviewItem(
media = it,
onClick = onItemClick,
sensitive = sensitive
sensitive = sensitive && status.platformType === PlatformType.Mastodon
)
}
}
Expand Down Expand Up @@ -250,6 +250,7 @@ object StatusMediaDefaults {
object Mastodon {
val IconSpacing = 8.dp
}

object Icon {
val ContentPadding = 6.dp
}
Expand Down

0 comments on commit cb3282c

Please sign in to comment.