From a5c740f52bb717c8925585e927caeebe620ee604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Wed, 25 Dec 2024 21:48:01 +0800 Subject: [PATCH] perf: copy showActivityId --- app/src/main/kotlin/li/songe/gkd/ui/ActivityLogPage.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/li/songe/gkd/ui/ActivityLogPage.kt b/app/src/main/kotlin/li/songe/gkd/ui/ActivityLogPage.kt index 5e249d1c2..324922ac0 100644 --- a/app/src/main/kotlin/li/songe/gkd/ui/ActivityLogPage.kt +++ b/app/src/main/kotlin/li/songe/gkd/ui/ActivityLogPage.kt @@ -144,9 +144,6 @@ private fun ActivityLogCard( } Row( modifier = Modifier - .clickable(onClick = throttle { - copyText(actionLog.showActivityId.toString()) - }) .fillMaxWidth() .height(IntrinsicSize.Min) ) { @@ -171,7 +168,11 @@ private fun ActivityLogCard( if (showActivityId != null) { StartEllipsisText( text = showActivityId, - modifier = Modifier.height(LocalTextStyle.current.lineHeight.value.dp), + modifier = Modifier + .clickable(onClick = throttle { + copyText(showActivityId) + }) + .height(LocalTextStyle.current.lineHeight.value.dp), ) } else { Text(