Skip to content

Commit 8374d16

Browse files
committed
Fixed line in commit graph not scaling
1 parent 733d9d6 commit 8374d16

File tree

1 file changed

+12
-7
lines changed
  • src/main/kotlin/com/jetpackduba/gitnuro/ui/log

1 file changed

+12
-7
lines changed

src/main/kotlin/com/jetpackduba/gitnuro/ui/log/Log.kt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ fun CommitsGraph(
10871087
color = colors[itemPosition % colors.size],
10881088
start = Offset(laneWidthWithDensity * (itemPosition + 1), this.center.y),
10891089
end = Offset(laneWidthWithDensity * (itemPosition + 1), 0f),
1090-
strokeWidth = 2f,
1090+
strokeWidth = 2f * density,
10911091
)
10921092
}
10931093

@@ -1096,7 +1096,7 @@ fun CommitsGraph(
10961096
color = colors[plotLane.position % colors.size],
10971097
start = Offset(laneWidthWithDensity * (itemPosition + 1), this.center.y),
10981098
end = Offset(laneWidthWithDensity * (plotLane.position + 1), 0f),
1099-
strokeWidth = 2f,
1099+
strokeWidth = 2f * density,
11001100
)
11011101
}
11021102

@@ -1105,7 +1105,7 @@ fun CommitsGraph(
11051105
color = colors[plotLane.position % colors.size],
11061106
start = Offset(laneWidthWithDensity * (plotLane.position + 1), this.size.height),
11071107
end = Offset(laneWidthWithDensity * (itemPosition + 1), this.center.y),
1108-
strokeWidth = 2f,
1108+
strokeWidth = 2f * density,
11091109
)
11101110
}
11111111

@@ -1114,7 +1114,7 @@ fun CommitsGraph(
11141114
color = colors[itemPosition % colors.size],
11151115
start = Offset(laneWidthWithDensity * (itemPosition + 1), this.center.y),
11161116
end = Offset(laneWidthWithDensity * (itemPosition + 1), this.size.height),
1117-
strokeWidth = 2f,
1117+
strokeWidth = 2f * density,
11181118
)
11191119
}
11201120

@@ -1123,7 +1123,7 @@ fun CommitsGraph(
11231123
color = colors[plotLane.position % colors.size],
11241124
start = Offset(laneWidthWithDensity * (plotLane.position + 1), 0f),
11251125
end = Offset(laneWidthWithDensity * (plotLane.position + 1), this.size.height),
1126-
strokeWidth = 2f,
1126+
strokeWidth = 2f * density,
11271127
)
11281128
}
11291129
}
@@ -1206,7 +1206,7 @@ fun UncommittedChangesGraphNode(
12061206
color = colors[0],
12071207
start = Offset(laneWidthWithDensity, this.center.y),
12081208
end = Offset(laneWidthWithDensity, this.size.height),
1209-
strokeWidth = 2f,
1209+
strokeWidth = 2f * density,
12101210
)
12111211

12121212
drawCircle(
@@ -1267,7 +1267,12 @@ fun BranchChip(
12671267
}
12681268

12691269
RefChip(
1270-
modifier = modifier,
1270+
modifier = modifier.draggable(
1271+
rememberDraggableState {
1272+
1273+
},
1274+
orientation = Orientation.Vertical,
1275+
),
12711276
color = color,
12721277
ref = ref,
12731278
icon = Res.drawable.branch,

0 commit comments

Comments
 (0)