Added possibility to select file path in diff

This commit is contained in:
Abdelilah El Aissaoui 2023-08-19 10:42:17 +02:00
parent 2c321e303a
commit e2cf95712a

View File

@ -795,7 +795,8 @@ private fun DiffHeader(
val fileName = diffEntry.fileName val fileName = diffEntry.fileName
val dirPath: String = diffEntry.parentDirectoryPath val dirPath: String = diffEntry.parentDirectoryPath
Row(Modifier.weight(1f, true)) { SelectionContainer {
Row {
if (dirPath.isNotEmpty()) { if (dirPath.isNotEmpty()) {
Text( Text(
text = dirPath.removeSuffix("/"), text = dirPath.removeSuffix("/"),
@ -827,6 +828,9 @@ private fun DiffHeader(
modifier = Modifier.padding(end = 16.dp), modifier = Modifier.padding(end = 16.dp),
) )
} }
}
Spacer(Modifier.weight(1f, true))
Row( Row(