feat: Add divider between dialogs in ChatsListScreen for improved visual separation
This commit is contained in:
@@ -518,6 +518,8 @@ fun ChatsListScreen(
|
||||
)
|
||||
} else {
|
||||
// Show dialogs list
|
||||
val dividerColor = if (isDarkTheme) Color(0xFF3A3A3A) else Color(0xFFE8E8E8)
|
||||
|
||||
LazyColumn(modifier = Modifier.fillMaxSize()) {
|
||||
items(dialogsList, key = { it.opponentKey }) { dialog ->
|
||||
val isSavedMessages = dialog.opponentKey == accountPublicKey
|
||||
@@ -527,26 +529,35 @@ fun ChatsListScreen(
|
||||
isBlocked = chatsViewModel.isUserBlocked(dialog.opponentKey)
|
||||
}
|
||||
|
||||
SwipeableDialogItem(
|
||||
dialog = dialog,
|
||||
isDarkTheme = isDarkTheme,
|
||||
isTyping = typingUsers.contains(dialog.opponentKey),
|
||||
isBlocked = isBlocked,
|
||||
isSavedMessages = isSavedMessages,
|
||||
onClick = {
|
||||
val user = chatsViewModel.dialogToSearchUser(dialog)
|
||||
onUserSelect(user)
|
||||
},
|
||||
onDelete = {
|
||||
dialogToDelete = dialog
|
||||
},
|
||||
onBlock = {
|
||||
dialogToBlock = dialog
|
||||
},
|
||||
onUnblock = {
|
||||
dialogToUnblock = dialog
|
||||
}
|
||||
)
|
||||
Column {
|
||||
SwipeableDialogItem(
|
||||
dialog = dialog,
|
||||
isDarkTheme = isDarkTheme,
|
||||
isTyping = typingUsers.contains(dialog.opponentKey),
|
||||
isBlocked = isBlocked,
|
||||
isSavedMessages = isSavedMessages,
|
||||
onClick = {
|
||||
val user = chatsViewModel.dialogToSearchUser(dialog)
|
||||
onUserSelect(user)
|
||||
},
|
||||
onDelete = {
|
||||
dialogToDelete = dialog
|
||||
},
|
||||
onBlock = {
|
||||
dialogToBlock = dialog
|
||||
},
|
||||
onUnblock = {
|
||||
dialogToUnblock = dialog
|
||||
}
|
||||
)
|
||||
|
||||
// 🔥 СЕПАРАТОР - линия разделения между диалогами
|
||||
Divider(
|
||||
modifier = Modifier.padding(start = 84.dp),
|
||||
color = dividerColor,
|
||||
thickness = 0.5.dp
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user