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

@@ -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
} }
} }

View File

@@ -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,