From 1ff5b3d36b46eb96d3df5845a1438c228ab07750 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Sun, 17 May 2026 08:00:01 -0700 Subject: [PATCH] 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. --- .../common/views/chatlist/ChatListNavLinkView.desktop.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt index a1f70213d0..2cc154cd61 100644 --- a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt +++ b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/chatlist/ChatListNavLinkView.desktop.kt @@ -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)) } }