diff --git a/src/main/kotlin/app/ui/UncommitedChanges.kt b/src/main/kotlin/app/ui/UncommitedChanges.kt index fd9d8aa..03ceab5 100644 --- a/src/main/kotlin/app/ui/UncommitedChanges.kt +++ b/src/main/kotlin/app/ui/UncommitedChanges.kt @@ -566,15 +566,17 @@ private fun FileEntry( tint = statusEntry.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),