mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-26 05:24:43 +00:00
ChatListNavLinkView.desktop: restore chat list dividers outside SectionView
Commit 633e0f414 made SectionDivider() a no-op outside SectionView card, which removed the desktop chat list dividers (the list is not wrapped in a SectionView). Mirror the Android conditional: SectionDivider in-card, padded Divider otherwise.
This commit is contained in:
+4
-1
@@ -1,5 +1,6 @@
|
||||
package chat.simplex.common.views.chatlist
|
||||
|
||||
import LocalInSectionCard
|
||||
import SectionDivider
|
||||
import androidx.compose.foundation.*
|
||||
import androidx.compose.foundation.interaction.InteractionSource
|
||||
@@ -61,7 +62,9 @@ actual fun ChatListNavLinkLayout(
|
||||
}
|
||||
if (selectedChat.value || nextChatSelected.value) {
|
||||
Divider()
|
||||
} else {
|
||||
} else if (LocalInSectionCard.current) {
|
||||
SectionDivider()
|
||||
} else {
|
||||
Divider(Modifier.padding(horizontal = 8.dp))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user