From a36b36171695af0acc47ecc16d1b6f4d1d290f50 Mon Sep 17 00:00:00 2001 From: Avently <7953703+avently@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:48:12 +0700 Subject: [PATCH] without unneeded element --- .../simplex/common/views/chat/ChatView.kt | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt index 970b9a02fe..d0a32cd146 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt @@ -1538,19 +1538,15 @@ private fun ButtonRow(horizontalArrangement: Arrangement.Horizontal, content: @C } @Composable -fun DateSeparator(date: Instant) { - Column ( +private fun DateSeparator(date: Instant) { + Text( + text = getTimestampDateText(date), Modifier.padding(DEFAULT_PADDING_HALF).fillMaxWidth(), - verticalArrangement = Arrangement.Center, - horizontalAlignment = Alignment.CenterHorizontally - ) { - Text( - text = getTimestampDateText(date), - fontSize = 14.sp, - fontWeight = FontWeight.Medium, - color = MaterialTheme.colors.secondary - ) - } + fontSize = 14.sp, + fontWeight = FontWeight.Medium, + textAlign = TextAlign.Center, + color = MaterialTheme.colors.secondary + ) } val chatViewScrollState = MutableStateFlow(false)