Reduced min size of commit changes & side panel components while adding default percentage

This commit is contained in:
Abdelilah El Aissaoui 2022-10-21 22:03:18 +02:00
parent b68461fb95
commit d5e831b3bf

View file

@ -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 ->