This commit is contained in:
Gabriel 2026-06-16 21:03:23 +01:00 committed by GitHub
commit 4518bbe4e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 12 deletions

View File

@ -492,8 +492,8 @@ fun EmojiPicker(
LazyVerticalGrid(
state = gridState,
columns = GridCells.Fixed(spanCount),
horizontalArrangement = Arrangement.spacedBy(4.dp),
verticalArrangement = Arrangement.spacedBy(4.dp),
horizontalArrangement = Arrangement.spacedBy(2.dp),
verticalArrangement = Arrangement.spacedBy(2.dp),
modifier = Modifier.fillMaxSize()
) {
if (searchResults.isNotEmpty()) {
@ -589,18 +589,16 @@ fun ColumnScope.PickerItem(
is EmojiPickerItem.UnicodeEmoji -> {
Column(
modifier = Modifier
.clip(CircleShape)
.aspectRatio(1f)
.clickable {
onClick(item)
}
.aspectRatio(1f)
.weight(1f),
},
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
Text(
text = skinToneFactory(item),
style = LocalTextStyle.current.copy(fontSize = 20.sp)
style = LocalTextStyle.current.copy(fontSize = 22.sp)
)
}
}
@ -608,13 +606,11 @@ fun ColumnScope.PickerItem(
is EmojiPickerItem.ServerEmote -> {
Column(
modifier = Modifier
.clip(CircleShape)
.aspectRatio(1f)
.combinedClickable(
onClick = { onClick(item) },
onLongClick = { item.emote.id?.let { onServerEmoteInfo(it) } }
)
.aspectRatio(1f)
.weight(1f),
),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
@ -624,7 +620,7 @@ fun ColumnScope.PickerItem(
contentScale = ContentScale.Fit,
modifier = Modifier
.fillMaxSize()
.padding(8.dp)
.padding(4.dp)
)
}
}