@@ -74,6 +74,7 @@ pub struct Revlog {
7474 key_config : SharedKeyConfig ,
7575 sender : Sender < AsyncGitNotification > ,
7676 theme : SharedTheme ,
77+ commit_list_percentage : u16 ,
7778}
7879
7980impl Revlog {
@@ -107,6 +108,7 @@ impl Revlog {
107108 key_config : env. key_config . clone ( ) ,
108109 sender : env. sender_git . clone ( ) ,
109110 theme : env. theme . clone ( ) ,
111+ commit_list_percentage : 60 ,
110112 }
111113 }
112114
@@ -424,8 +426,12 @@ impl DrawableComponent for Revlog {
424426 . direction ( Direction :: Horizontal )
425427 . constraints (
426428 [
427- Constraint :: Percentage ( 60 ) ,
428- Constraint :: Percentage ( 40 ) ,
429+ Constraint :: Percentage (
430+ self . commit_list_percentage ,
431+ ) ,
432+ Constraint :: Percentage (
433+ 100 - self . commit_list_percentage ,
434+ ) ,
429435 ]
430436 . as_ref ( ) ,
431437 )
@@ -461,6 +467,20 @@ impl Component for Revlog {
461467 self . commit_details . toggle_visible ( ) ?;
462468 self . update ( ) ?;
463469 return Ok ( EventState :: Consumed ) ;
470+ } else if key_match ( k, self . key_config . keys . alt_left )
471+ {
472+ if self . commit_list_percentage > 10 {
473+ self . commit_list_percentage -= 5 ;
474+ self . update ( ) ?;
475+ }
476+ return Ok ( EventState :: Consumed ) ;
477+ } else if key_match ( k, self . key_config . keys . alt_right )
478+ {
479+ if self . commit_list_percentage < 90 {
480+ self . commit_list_percentage += 5 ;
481+ self . update ( ) ?;
482+ }
483+ return Ok ( EventState :: Consumed ) ;
464484 } else if key_match (
465485 k,
466486 self . key_config . keys . exit_popup ,
0 commit comments