From 7c37f898d5fb1a1f9a43f90933cb59bcbd63cbf7 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Sun, 17 May 2026 08:05:36 -0700 Subject: [PATCH] UserPicker: restore SectionView wrap around desktop active-profile row Commit 3a7118235 extracted the profile out of its original SectionView when wrapping the menu in its own card. Without the card chrome the profile shifted to the screen edge instead of sitting at CARD_PADDING like the menu below. Wrap it back in SectionView and add SectionDividerSpaced before the menu card. --- .../chat/simplex/common/views/chatlist/UserPicker.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt index 0a42b21d7b..54732aa3bd 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt @@ -1,6 +1,7 @@ package chat.simplex.common.views.chatlist import SectionDivider +import SectionDividerSpaced import SectionItemView import SectionView import TextIconSpaced @@ -211,9 +212,12 @@ fun UserPicker( ) } } else if (currentUser != null) { - SectionItemView({ onUserClicked(currentUser) }, 80.dp, padding = PaddingValues(start = 16.dp, end = DEFAULT_PADDING), disabled = stopped) { - ProfilePreview(currentUser.profile, iconColor = iconColor, stopped = stopped) + SectionView { + SectionItemView({ onUserClicked(currentUser) }, 80.dp, padding = PaddingValues(start = 16.dp, end = DEFAULT_PADDING), disabled = stopped) { + ProfilePreview(currentUser.profile, iconColor = iconColor, stopped = stopped) + } } + SectionDividerSpaced() } }