mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
fix Modifier forbidden pattern and missing const
Signed-off-by: Marco Antonio Alvarez <surakin@gmail.com>
This commit is contained in:
+1
-1
@@ -120,7 +120,7 @@ sealed interface MessagesReactionsButtonContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal val reactionEmojiLineHeight = 20.sp
|
internal val reactionEmojiLineHeight = 20.sp
|
||||||
internal val reactionImageAspectRatio = 1.33f
|
internal const val reactionImageAspectRatio = 1.33f
|
||||||
private val addEmojiSize = 16.dp
|
private val addEmojiSize = 16.dp
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|||||||
+1
-1
@@ -201,7 +201,7 @@ private fun AggregatedReactionButton(
|
|||||||
) {
|
) {
|
||||||
if (reaction.key.startsWith("mxc://")) {
|
if (reaction.key.startsWith("mxc://")) {
|
||||||
BlurHashAsyncImage(
|
BlurHashAsyncImage(
|
||||||
modifier = modifier
|
modifier = Modifier
|
||||||
.heightIn(min = reactionEmojiLineHeight.toDp(), max = reactionEmojiLineHeight.toDp())
|
.heightIn(min = reactionEmojiLineHeight.toDp(), max = reactionEmojiLineHeight.toDp())
|
||||||
.aspectRatio(reactionImageAspectRatio, false),
|
.aspectRatio(reactionImageAspectRatio, false),
|
||||||
model = MediaRequestData(MediaSource(reaction.key), MediaRequestData.Kind.Content),
|
model = MediaRequestData(MediaSource(reaction.key), MediaRequestData.Kind.Content),
|
||||||
|
|||||||
Reference in New Issue
Block a user