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.
This commit is contained in:
another-simple-pixel
2026-05-17 08:05:36 -07:00
parent 1ff5b3d36b
commit 7c37f898d5
@@ -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()
}
}