Restored side panel hidden during rebase interactive

This commit is contained in:
Abdelilah El Aissaoui 2024-01-12 15:14:25 +01:00
parent 8a65a56f75
commit c674f1fc1e
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -257,7 +257,7 @@ fun MainContentView(
TripleVerticalSplitPanel( TripleVerticalSplitPanel(
modifier = Modifier.fillMaxSize(), modifier = Modifier.fillMaxSize(),
firstWidth = firstWidth, firstWidth = if(rebaseInteractiveState is RebaseInteractiveState.AwaitingInteraction) 0f else firstWidth,
thirdWidth = thirdWidth, thirdWidth = thirdWidth,
first = { first = {
SidePanel() SidePanel()
@ -368,7 +368,7 @@ fun MainContentView(
onFirstSizeDrag = { onFirstSizeDrag = {
val newWidth = firstWidth + it / density val newWidth = firstWidth + it / density
if (newWidth > 150) { if (newWidth > 150 && rebaseInteractiveState !is RebaseInteractiveState.AwaitingInteraction) {
firstWidth = newWidth firstWidth = newWidth
tabViewModel.firstPaneWidth = firstWidth tabViewModel.firstPaneWidth = firstWidth
} }