feat: Refactor emoji picker layout and adjust content padding for improved appearance

This commit is contained in:
k1ngsterr1
2026-01-14 03:09:42 +05:00
parent ffc823285c
commit e7971c9b3e
2 changed files with 10 additions and 17 deletions

View File

@@ -2330,25 +2330,18 @@ private fun MessageInputBar(
animationSpec = tween(100, easing = FastOutSlowInEasing)
)
) {
Box(
AppleEmojiPickerPanel(
isDarkTheme = isDarkTheme,
onEmojiSelected = { emoji ->
onValueChange(value + emoji)
},
onClose = {
onToggleEmojiPicker(false)
},
modifier = Modifier
.fillMaxWidth()
.height(emojiPanelHeight)
.padding(bottom = 16.dp)
) {
AppleEmojiPickerPanel(
isDarkTheme = isDarkTheme,
onEmojiSelected = { emoji ->
onValueChange(value + emoji)
},
onClose = {
onToggleEmojiPicker(false)
},
modifier = Modifier
.fillMaxWidth()
.height(emojiPanelHeight - 16.dp)
)
}
)
}
} // End of if (!isBlocked) for emoji picker
}

View File

@@ -700,7 +700,7 @@ fun AppleEmojiPickerPanel(
.weight(1f),
horizontalArrangement = Arrangement.spacedBy(1.dp),
verticalArrangement = Arrangement.spacedBy(1.dp),
contentPadding = PaddingValues(start = 12.dp, end = 12.dp, top = 4.dp, bottom = 16.dp)
contentPadding = PaddingValues(start = 12.dp, end = 12.dp, top = 4.dp, bottom = 4.dp)
) {
items(
items = displayedEmojis,