Fixed file name not being completly displayed when it's in the root of the dir

This commit is contained in:
Abdelilah El Aissaoui 2022-04-04 05:05:50 +02:00
parent 0c40d7892c
commit 61d5ee941a

View file

@ -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),