From 5d467b890ebe4b64a02ccefacf41c0f216c8b0d0 Mon Sep 17 00:00:00 2001 From: lisonge Date: Fri, 10 May 2024 14:59:30 +0800 Subject: [PATCH] perf: snapshot page start ellipsis activityId --- app/src/main/kotlin/li/songe/gkd/ui/SnapshotPage.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/li/songe/gkd/ui/SnapshotPage.kt b/app/src/main/kotlin/li/songe/gkd/ui/SnapshotPage.kt index 7279933..87799c8 100644 --- a/app/src/main/kotlin/li/songe/gkd/ui/SnapshotPage.kt +++ b/app/src/main/kotlin/li/songe/gkd/ui/SnapshotPage.kt @@ -57,6 +57,7 @@ import li.songe.gkd.db.DbSet import li.songe.gkd.debug.SnapshotExt import li.songe.gkd.permission.canSaveToAlbumState import li.songe.gkd.permission.checkOrRequestPermission +import li.songe.gkd.ui.component.StartEllipsisText import li.songe.gkd.ui.destinations.ImagePreviewPageDestination import li.songe.gkd.util.IMPORT_BASE_URL import li.songe.gkd.util.LoadStatus @@ -149,10 +150,7 @@ fun SnapshotPage() { snapshot.activityId } Spacer(modifier = Modifier.width(10.dp)) - Text( - text = showActivityId, overflow = TextOverflow.Ellipsis, - maxLines = 1, - ) + StartEllipsisText(text = showActivityId) } } HorizontalDivider()