From 29be15404f8965c98f46a441534c9c45c44caef8 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Sat, 16 May 2026 15:13:22 -0700 Subject: [PATCH] GroupLink / WelcomeMessage: use SectionDividerSpaced between adjacent cards Three places had adjacent SectionView cards with no spacer (GroupLinkView QR + actions, WelcomeMessageView non-owner preview + copy), or used a one-off Spacer(8.dp) instead of the conventional helper (owner mode-button card). Replace with SectionDividerSpaced() so all between-card gaps live behind one helper. --- .../chat/simplex/common/views/chat/group/GroupLinkView.kt | 2 ++ .../chat/simplex/common/views/chat/group/WelcomeMessageView.kt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupLinkView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupLinkView.kt index 3f852de2b3..fc781d3123 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupLinkView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/GroupLinkView.kt @@ -1,6 +1,7 @@ package chat.simplex.common.views.chat.group import SectionBottomSpacer +import SectionDividerSpaced import SectionItemView import SectionView import SectionViewWithButton @@ -234,6 +235,7 @@ fun GroupLinkLayout( } else null) { SimpleXCreatedLinkQRCode(groupLink.connLinkContact, short = showShortLink.value) } + SectionDividerSpaced() SectionView { if (!isChannel && groupLink.shouldBeUpgraded) { SettingsActionItem( diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/WelcomeMessageView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/WelcomeMessageView.kt index 13c6868653..9a9892647a 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/WelcomeMessageView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/group/WelcomeMessageView.kt @@ -117,7 +117,7 @@ private fun GroupWelcomeLayout( color = if (welcomeTextFitsLimit(wt)) MaterialTheme.colors.secondary else Color.Red ) - Spacer(Modifier.size(8.dp)) + SectionDividerSpaced() SectionView { ChangeModeButton( @@ -142,6 +142,7 @@ private fun GroupWelcomeLayout( SectionView(contentPadding = PaddingValues(vertical = DEFAULT_PADDING_HALF)) { TextPreview(wt.value, linkMode) } + SectionDividerSpaced() SectionView { CopyTextButton { clipboard.setText(AnnotatedString(wt.value)) } }