Skip to content

Commit 118e0f9

Browse files
committed
Replaced log's date time tooltip for an instant tooltip
1 parent c5ddea3 commit 118e0f9

File tree

1 file changed

+12
-8
lines changed
  • src/main/kotlin/com/jetpackduba/gitnuro/ui/log

1 file changed

+12
-8
lines changed

src/main/kotlin/com/jetpackduba/gitnuro/ui/log/Log.kt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,15 +1016,19 @@ fun CommitMessage(
10161016
overflow = TextOverflow.Ellipsis,
10171017
)
10181018

1019-
TooltipText(
1020-
text = commit.authorIdent.whenAsInstant.toSmartSystemString(),
1019+
InstantTooltip(
1020+
text = commit.authorIdent.whenAsInstant.toSmartSystemString(allowRelative = false, showTime = true),
10211021
modifier = Modifier.padding(horizontal = 16.dp),
1022-
style = MaterialTheme.typography.caption,
1023-
color = MaterialTheme.colors.onBackgroundSecondary,
1024-
maxLines = 1,
1025-
overflow = TextOverflow.Ellipsis,
1026-
tooltipTitle = commit.authorIdent.whenAsInstant.toSmartSystemString(allowRelative = false, showTime = true)
1027-
)
1022+
position = InstantTooltipPosition.RIGHT,
1023+
) {
1024+
Text(
1025+
text = commit.authorIdent.whenAsInstant.toSmartSystemString(),
1026+
style = MaterialTheme.typography.caption,
1027+
color = MaterialTheme.colors.onBackgroundSecondary,
1028+
maxLines = 1,
1029+
overflow = TextOverflow.Ellipsis,
1030+
)
1031+
}
10281032
}
10291033
}
10301034

0 commit comments

Comments
 (0)