diff --git a/src/main/kotlin/app/ui/CommitChanges.kt b/src/main/kotlin/app/ui/CommitChanges.kt index eef6180..9707cad 100644 --- a/src/main/kotlin/app/ui/CommitChanges.kt +++ b/src/main/kotlin/app/ui/CommitChanges.kt @@ -227,15 +227,17 @@ fun CommitLogChanges( tint = diffEntry.iconColor, ) - Text( - text = diffEntry.parentDirectoryPath, - modifier = Modifier.weight(1f, fill = false), - maxLines = 1, - softWrap = false, - fontSize = 13.sp, - overflow = TextOverflow.Ellipsis, - color = secondaryTextColor, - ) + if(diffEntry.parentDirectoryPath.isNotEmpty()) { + Text( + text = diffEntry.parentDirectoryPath, + modifier = Modifier.weight(1f, fill = false), + maxLines = 1, + softWrap = false, + fontSize = 13.sp, + overflow = TextOverflow.Ellipsis, + color = secondaryTextColor, + ) + } Text( text = diffEntry.fileName, modifier = Modifier.weight(1f, fill = false),