feat: Refactor emoji picker layout and adjust content padding for improved appearance
This commit is contained in:
@@ -2330,25 +2330,18 @@ private fun MessageInputBar(
|
|||||||
animationSpec = tween(100, easing = FastOutSlowInEasing)
|
animationSpec = tween(100, easing = FastOutSlowInEasing)
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
Box(
|
AppleEmojiPickerPanel(
|
||||||
|
isDarkTheme = isDarkTheme,
|
||||||
|
onEmojiSelected = { emoji ->
|
||||||
|
onValueChange(value + emoji)
|
||||||
|
},
|
||||||
|
onClose = {
|
||||||
|
onToggleEmojiPicker(false)
|
||||||
|
},
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(emojiPanelHeight)
|
.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
|
} // End of if (!isBlocked) for emoji picker
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -700,7 +700,7 @@ fun AppleEmojiPickerPanel(
|
|||||||
.weight(1f),
|
.weight(1f),
|
||||||
horizontalArrangement = Arrangement.spacedBy(1.dp),
|
horizontalArrangement = Arrangement.spacedBy(1.dp),
|
||||||
verticalArrangement = 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(
|
||||||
items = displayedEmojis,
|
items = displayedEmojis,
|
||||||
|
|||||||
Reference in New Issue
Block a user