From d5e831b3bf37b557cd808a9d8c79acae12c1cb5a Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Fri, 21 Oct 2022 22:03:18 +0200 Subject: [PATCH] Reduced min size of commit changes & side panel components while adding default percentage --- .../com/jetpackduba/gitnuro/ui/RepositoryOpen.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/ui/RepositoryOpen.kt b/src/main/kotlin/com/jetpackduba/gitnuro/ui/RepositoryOpen.kt index 484e8cd..d3e1df8 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/ui/RepositoryOpen.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/ui/RepositoryOpen.kt @@ -343,8 +343,10 @@ fun MainContentView( repositoryState: RepositoryState, blameState: BlameState ) { - HorizontalSplitPane { - first(minSize = 250.dp) { + HorizontalSplitPane( + splitPaneState = rememberSplitPaneState(initialPositionPercentage = 0.20f) + ) { + first(minSize = 180.dp) { ScrollableColumn(modifier = Modifier.fillMaxHeight()) { Branches() Remotes() @@ -416,7 +418,7 @@ fun MainContentView( this.repositorySplitter() } - second(minSize = 300.dp) { + second(minSize = 250.dp) { Box( modifier = Modifier .fillMaxHeight() @@ -424,7 +426,6 @@ fun MainContentView( val safeSelectedItem = selectedItem if (safeSelectedItem == SelectedItem.UncommitedChanges) { UncommitedChanges( -// statusViewModel = tabViewModel.statusViewModel, selectedEntryType = diffSelected, repositoryState = repositoryState, onStagedDiffEntrySelected = { diffEntry -> @@ -452,7 +453,6 @@ fun MainContentView( ) } else if (safeSelectedItem is SelectedItem.CommitBasedItem) { CommitChanges( -// commitChangesViewModel = tabViewModel.commitChangesViewModel, selectedItem = safeSelectedItem, diffSelected = diffSelected, onDiffSelected = { diffEntry ->