feat: Adjust input bar dimensions and navigation bar padding for improved layout
This commit is contained in:
@@ -1151,7 +1151,7 @@ fun ChatDetailScreen(
|
|||||||
start = 0.dp,
|
start = 0.dp,
|
||||||
end = 0.dp,
|
end = 0.dp,
|
||||||
top = 8.dp,
|
top = 8.dp,
|
||||||
bottom = if (isSelectionMode) 140.dp else 80.dp
|
bottom = if (isSelectionMode) 160.dp else 100.dp // 🔥 Увеличено для инпута
|
||||||
),
|
),
|
||||||
reverseLayout = true
|
reverseLayout = true
|
||||||
) {
|
) {
|
||||||
@@ -2155,6 +2155,7 @@ private fun MessageInputBar(
|
|||||||
color = backgroundColor // Тот же цвет что и фон чата
|
color = backgroundColor // Тот же цвет что и фон чата
|
||||||
)
|
)
|
||||||
.padding(bottom = if (isKeyboardVisible) 0.dp else 16.dp)
|
.padding(bottom = if (isKeyboardVisible) 0.dp else 16.dp)
|
||||||
|
.navigationBarsPadding() // 🔥 Учитываем navigation bar когда клавиатура закрыта
|
||||||
) {
|
) {
|
||||||
// REPLY PANEL
|
// REPLY PANEL
|
||||||
AnimatedVisibility(
|
AnimatedVisibility(
|
||||||
@@ -2242,7 +2243,7 @@ private fun MessageInputBar(
|
|||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.weight(1f)
|
.weight(1f)
|
||||||
.heightIn(min = 40.dp)
|
.heightIn(min = 40.dp, max = 150.dp) // 🔥 Ограничиваем максимум, но даём расти
|
||||||
.background(
|
.background(
|
||||||
color = backgroundColor // Тот же цвет что и фон чата
|
color = backgroundColor // Тот же цвет что и фон чата
|
||||||
)
|
)
|
||||||
@@ -2256,7 +2257,7 @@ private fun MessageInputBar(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(horizontal = 12.dp, vertical = 8.dp),
|
.padding(horizontal = 12.dp, vertical = 8.dp),
|
||||||
contentAlignment = Alignment.CenterStart
|
contentAlignment = Alignment.TopStart // 🔥 TopStart чтобы текст не обрезался
|
||||||
) {
|
) {
|
||||||
AppleEmojiTextField(
|
AppleEmojiTextField(
|
||||||
value = value,
|
value = value,
|
||||||
|
|||||||
Reference in New Issue
Block a user