Revert "Fixed line uncommited changes -> first commit not being drawn in the log "
This reverts commit 1eb1eac47d
.
This commit is contained in:
parent
1eb1eac47d
commit
dd56355497
@ -450,6 +450,7 @@ fun MessagesList(
|
||||
.clickable { logViewModel.selectUncommitedChanges() }
|
||||
) {
|
||||
UncommitedChangesGraphNode(
|
||||
hasPreviousCommits = commitList.isNotEmpty(),
|
||||
isSelected = selectedItem is SelectedItem.UncommitedChanges,
|
||||
modifier = Modifier.offset(-horizontalScrollState.value.dp)
|
||||
)
|
||||
@ -1034,6 +1035,7 @@ fun CommitNode(
|
||||
@Composable
|
||||
fun UncommitedChangesGraphNode(
|
||||
modifier: Modifier = Modifier,
|
||||
hasPreviousCommits: Boolean,
|
||||
isSelected: Boolean,
|
||||
) {
|
||||
val density = LocalDensity.current.density
|
||||
@ -1049,7 +1051,7 @@ fun UncommitedChangesGraphNode(
|
||||
modifier = Modifier.fillMaxSize()
|
||||
) {
|
||||
clipRect {
|
||||
drawLine(
|
||||
if (hasPreviousCommits) drawLine(
|
||||
color = colors[0],
|
||||
start = Offset(laneWidthWithDensity, this.center.y),
|
||||
end = Offset(laneWidthWithDensity, this.size.height),
|
||||
|
Loading…
Reference in New Issue
Block a user