fix: Optimize emoji loading logic and adjust padding in AppleEmojiPickerPanel

This commit is contained in:
k1ngsterr1
2026-01-13 06:36:33 +05:00
parent 5bb9560353
commit 378c68f1eb

View File

@@ -362,9 +362,7 @@ fun AppleEmojiPickerPanel(
// Загружаем эмодзи если еще не загружены (синхронно из кеша если уже загружено) // Загружаем эмодзи если еще не загружены (синхронно из кеша если уже загружено)
LaunchedEffect(Unit) { LaunchedEffect(Unit) {
if (!EmojiCache.isLoaded) { if (!EmojiCache.isLoaded) {
kotlinx.coroutines.launch(kotlinx.coroutines.Dispatchers.Main) { EmojiCache.loadEmojis(context)
EmojiCache.loadEmojis(context)
}
} }
} }
@@ -456,7 +454,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(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(
items = currentEmojis, items = currentEmojis,