feat: Refactor emoji picker layout and adjust content padding for improved appearance
This commit is contained in:
@@ -2329,12 +2329,6 @@ private fun MessageInputBar(
|
|||||||
targetOffsetY = { it }, // Сверху вниз
|
targetOffsetY = { it }, // Сверху вниз
|
||||||
animationSpec = tween(100, easing = FastOutSlowInEasing)
|
animationSpec = tween(100, easing = FastOutSlowInEasing)
|
||||||
)
|
)
|
||||||
) {
|
|
||||||
Box(
|
|
||||||
modifier = Modifier
|
|
||||||
.fillMaxWidth()
|
|
||||||
.height(emojiPanelHeight)
|
|
||||||
.padding(bottom = 16.dp)
|
|
||||||
) {
|
) {
|
||||||
AppleEmojiPickerPanel(
|
AppleEmojiPickerPanel(
|
||||||
isDarkTheme = isDarkTheme,
|
isDarkTheme = isDarkTheme,
|
||||||
@@ -2346,10 +2340,9 @@ private fun MessageInputBar(
|
|||||||
},
|
},
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(emojiPanelHeight - 16.dp)
|
.height(emojiPanelHeight)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} // 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