Moved date in "Commited changes" to fit better in low res screens

This commit is contained in:
Abdelilah El Aissaoui 2022-06-01 12:12:31 +02:00
parent a6c496d866
commit 8a25dadc12

View File

@ -151,15 +151,23 @@ fun Author(commit: RevCommit) {
.fillMaxSize(), .fillMaxSize(),
verticalArrangement = Arrangement.Center verticalArrangement = Arrangement.Center
) { ) {
TooltipText(
text = authorIdent.name,
color = MaterialTheme.colors.primaryTextColor,
maxLines = 1,
fontSize = 14.sp,
tooltipTitle = authorIdent.emailAddress,
)
Row { Row {
TooltipText( Text(
text = authorIdent.name, text = commit.id.abbreviate(7).name(),
color = MaterialTheme.colors.primaryTextColor, color = MaterialTheme.colors.secondaryTextColor,
maxLines = 1, maxLines = 1,
fontSize = 14.sp, fontSize = 12.sp,
tooltipTitle = authorIdent.emailAddress,
) )
Spacer(modifier = Modifier.weight(1f, fill = true)) Spacer(modifier = Modifier.weight(1f, fill = true))
val date = remember(authorIdent) { val date = remember(authorIdent) {
@ -175,13 +183,6 @@ fun Author(commit: RevCommit) {
tooltipTitle = authorIdent.`when`.toSystemDateTimeString() tooltipTitle = authorIdent.`when`.toSystemDateTimeString()
) )
} }
Text(
text = commit.id.abbreviate(7).name(),
color = MaterialTheme.colors.secondaryTextColor,
maxLines = 1,
fontSize = 12.sp,
)
} }
} }
} }