Fixed file name not being completly displayed when it's in the root of the dir
This commit is contained in:
parent
0c40d7892c
commit
61d5ee941a
1 changed files with 11 additions and 9 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue