Skip to content

Commit

Permalink
perf: copy showActivityId
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 25, 2024
1 parent b932bbb commit a5c740f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/src/main/kotlin/li/songe/gkd/ui/ActivityLogPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ private fun ActivityLogCard(
}
Row(
modifier = Modifier
.clickable(onClick = throttle {
copyText(actionLog.showActivityId.toString())
})
.fillMaxWidth()
.height(IntrinsicSize.Min)
) {
Expand All @@ -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(
Expand Down

0 comments on commit a5c740f

Please sign in to comment.