File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
crates/tui/src/view/component Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -74,22 +74,19 @@ impl Draw for Footer {
7474 . map ( |metadata| metadata. display_name ( ) )
7575 . traced ( )
7676 . unwrap_or_default ( ) ;
77- let collection_path_text = Span :: styled (
77+ let collection_name_text = Span :: styled (
7878 input_engine. add_hint ( collection_name, Action :: SelectCollection ) ,
7979 styles. text . highlight ,
8080 ) ;
8181
8282 let help = HelpFooter . generate ( ) ;
83- let [ help_area, collection_area] = Layout :: horizontal ( [
83+ let [ collection_area, help_area] = Layout :: horizontal ( [
84+ Constraint :: Length ( collection_name_text. content . len ( ) as u16 ) ,
8485 Constraint :: Min ( help. width ( ) as u16 ) ,
85- Constraint :: Length ( collection_path_text. content . len ( ) as u16 ) ,
8686 ] )
8787 . areas ( metadata. area ( ) ) ;
8888
89- frame. render_widget ( help, help_area) ;
90- frame. render_widget (
91- collection_path_text. into_right_aligned_line ( ) ,
92- collection_area,
93- ) ;
89+ frame. render_widget ( collection_name_text, collection_area) ;
90+ frame. render_widget ( help. into_right_aligned_line ( ) , help_area) ;
9491 }
9592}
You can’t perform that action at this time.
0 commit comments