fix: Optimize emoji loading logic and adjust padding in AppleEmojiPickerPanel
This commit is contained in:
@@ -362,9 +362,7 @@ fun AppleEmojiPickerPanel(
|
||||
// Загружаем эмодзи если еще не загружены (синхронно из кеша если уже загружено)
|
||||
LaunchedEffect(Unit) {
|
||||
if (!EmojiCache.isLoaded) {
|
||||
kotlinx.coroutines.launch(kotlinx.coroutines.Dispatchers.Main) {
|
||||
EmojiCache.loadEmojis(context)
|
||||
}
|
||||
EmojiCache.loadEmojis(context)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -456,7 +454,7 @@ fun AppleEmojiPickerPanel(
|
||||
.weight(1f),
|
||||
horizontalArrangement = Arrangement.spacedBy(1.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(1.dp),
|
||||
contentPadding = PaddingValues(horizontal = 12.dp, top = 4.dp, bottom = 16.dp)
|
||||
contentPadding = PaddingValues(start = 12.dp, end = 12.dp, top = 4.dp, bottom = 16.dp)
|
||||
) {
|
||||
items(
|
||||
items = currentEmojis,
|
||||
|
||||
Reference in New Issue
Block a user