Fixed line uncommited changes -> first commit not being drawn in the log
This commit is contained in:
parent
60e67d9683
commit
1eb1eac47d
@ -450,7 +450,6 @@ 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)
|
||||||
)
|
)
|
||||||
@ -1035,7 +1034,6 @@ 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
|
||||||
@ -1051,7 +1049,7 @@ fun UncommitedChangesGraphNode(
|
|||||||
modifier = Modifier.fillMaxSize()
|
modifier = Modifier.fillMaxSize()
|
||||||
) {
|
) {
|
||||||
clipRect {
|
clipRect {
|
||||||
if (hasPreviousCommits) drawLine(
|
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