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() }
|
.clickable { logViewModel.selectUncommitedChanges() }
|
||||||
) {
|
) {
|
||||||
UncommitedChangesGraphNode(
|
UncommitedChangesGraphNode(
|
||||||
|
hasPreviousCommits = commitList.isNotEmpty(),
|
||||||
isSelected = selectedItem is SelectedItem.UncommitedChanges,
|
isSelected = selectedItem is SelectedItem.UncommitedChanges,
|
||||||
modifier = Modifier.offset(-horizontalScrollState.value.dp)
|
modifier = Modifier.offset(-horizontalScrollState.value.dp)
|
||||||
)
|
)
|
||||||
@ -1034,6 +1035,7 @@ fun CommitNode(
|
|||||||
@Composable
|
@Composable
|
||||||
fun UncommitedChangesGraphNode(
|
fun UncommitedChangesGraphNode(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
|
hasPreviousCommits: Boolean,
|
||||||
isSelected: Boolean,
|
isSelected: Boolean,
|
||||||
) {
|
) {
|
||||||
val density = LocalDensity.current.density
|
val density = LocalDensity.current.density
|
||||||
@ -1049,7 +1051,7 @@ fun UncommitedChangesGraphNode(
|
|||||||
modifier = Modifier.fillMaxSize()
|
modifier = Modifier.fillMaxSize()
|
||||||
) {
|
) {
|
||||||
clipRect {
|
clipRect {
|
||||||
drawLine(
|
if (hasPreviousCommits) drawLine(
|
||||||
color = colors[0],
|
color = colors[0],
|
||||||
start = Offset(laneWidthWithDensity, this.center.y),
|
start = Offset(laneWidthWithDensity, this.center.y),
|
||||||
end = Offset(laneWidthWithDensity, this.size.height),
|
end = Offset(laneWidthWithDensity, this.size.height),
|
||||||
|
Loading…
Reference in New Issue
Block a user