Fixed diff header overlapping the buttons

This commit is contained in:
Abdelilah El Aissaoui 2023-10-29 16:44:23 +01:00
parent f53c306099
commit 77df8671e6
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -861,8 +861,12 @@ private fun DiffHeader(
val fileName = diffEntry.fileName val fileName = diffEntry.fileName
val dirPath: String = diffEntry.parentDirectoryPath val dirPath: String = diffEntry.parentDirectoryPath
Box(
modifier = Modifier
.weight(1f, true)
) {
SelectionContainer { SelectionContainer {
Row { Row() {
if (dirPath.isNotEmpty()) { if (dirPath.isNotEmpty()) {
Text( Text(
text = dirPath.removeSuffix("/"), text = dirPath.removeSuffix("/"),
@ -895,9 +899,7 @@ private fun DiffHeader(
) )
} }
} }
}
Spacer(Modifier.weight(1f, true))
Row( Row(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,