From fc83bc692ae7a7983ba00db2e9573b8bf4de6e4d Mon Sep 17 00:00:00 2001 From: Diogo Date: Sat, 28 Sep 2024 18:26:43 +0100 Subject: [PATCH] android, desktop: make space on chat bubble end consistent (#4946) * android, desktop: make space on chat bubble end consistent * use non breaking spaces for reserve space * avoid first white space non breaking to not drag content down --- .../chat/simplex/common/views/chat/item/CIMetaView.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIMetaView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIMetaView.kt index 68077d31f8..4ec2a885e7 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIMetaView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/CIMetaView.kt @@ -125,9 +125,9 @@ fun reserveSpaceForMeta( showViaProxy: Boolean = false, showTimestamp: Boolean ): String { - val iconSpace = " " - val whiteSpace = " " - var res = iconSpace + val iconSpace = " \u00A0\u00A0\u00A0" + val whiteSpace = "\u00A0" + var res = if (showTimestamp) "" else iconSpace var space: String? = null fun appendSpace() {