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