From 21ebb3505dc2edf720c5d1a10a83170df2e50a9a Mon Sep 17 00:00:00 2001 From: "Evgeny @ SimpleX Chat" <259188159+evgeny-simplex@users.noreply.github.com> Date: Thu, 2 Apr 2026 15:55:36 +0000 Subject: [PATCH] move copy button in z-order --- .../kotlin/chat/simplex/common/views/chat/ChatView.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 4a2b5f6419..05f6f92575 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 @@ -1058,6 +1058,10 @@ fun ChatLayout( } } } + // Copy button: above messages, behind toolbars/compose + if (appPlatform.isDesktop) { + SelectionCopyButton() + } val reportsCount = reportsCount(chatInfo?.id) val supportUnreadCount = supportUnreadCount(chatInfo?.id) if (oneHandUI.value && chatBottomBar.value) { @@ -1134,10 +1138,6 @@ fun ChatLayout( } } } - // Desktop selection copy button — last child of outer Box, on top of everything - if (appPlatform.isDesktop) { - SelectionCopyButton() - } } } }