feat: Enhance clickable interactions in ChatDetailScreen by removing indications and adding custom interaction sources

This commit is contained in:
k1ngsterr1
2026-01-13 04:24:42 +05:00
parent 564176eb31
commit 98835c0ae0

View File

@@ -497,7 +497,10 @@ fun ChatDetailScreen(
if (isSavedMessages) PrimaryBlue
else avatarColors.backgroundColor
)
.clickable {
.clickable(
indication = null,
interactionSource = remember { MutableInteractionSource() }
) {
keyboardController?.hide()
focusManager.clearFocus()
onUserProfileClick()
@@ -529,7 +532,10 @@ fun ChatDetailScreen(
// Информация о пользователе
Column(
modifier =
Modifier.weight(1f).clickable {
Modifier.weight(1f).clickable(
indication = null,
interactionSource = remember { MutableInteractionSource() }
) {
keyboardController?.hide()
focusManager.clearFocus()
onUserProfileClick()
@@ -1416,6 +1422,8 @@ private fun MessageBubble(
modifier =
Modifier.widthIn(max = 300.dp)
.combinedClickable(
indication = null,
interactionSource = remember { MutableInteractionSource() },
onClick = onClick,
onLongClick = onLongClick
)