Fixed first part of the split pane being shown a tiny bit during rebase interactive

This commit is contained in:
Abdelilah El Aissaoui 2024-03-21 00:01:20 +01:00
parent 49c1d7ef9d
commit 78156a638e
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -7,7 +7,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.pointer.pointerHoverIcon
import androidx.compose.ui.unit.dp
@ -27,23 +27,24 @@ fun TripleVerticalSplitPanel(
Row(
modifier = modifier
) {
Box(modifier = Modifier.width(firstWidth.dp)) {
first()
if (firstWidth > 0) {
Box(modifier = Modifier.width(firstWidth.dp)) {
first()
}
Box(
modifier = Modifier
.fillMaxHeight()
.width(8.dp)
.draggable(
state = rememberDraggableState {
onFirstSizeDrag(it)
},
orientation = Orientation.Horizontal
)
.pointerHoverIcon(resizePointerIconEast)
)
}
Box(
modifier = Modifier
.fillMaxHeight()
.width(8.dp)
.draggable(
state = rememberDraggableState {
onFirstSizeDrag(it)
},
orientation = Orientation.Horizontal
)
.pointerHoverIcon(resizePointerIconEast)
)
Box(Modifier.weight(1f, true)) {
second()
}