Fixed first part of the split pane being shown a tiny bit during rebase interactive
This commit is contained in:
parent
49c1d7ef9d
commit
78156a638e
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user