feat(ui): shrink system/status output height and improve file panel toggle feedback
- Adjust layout constraint from 5 to 4 lines to match 2 lines of content plus borders. - Refactor file focus key handling to toggle the file panel state and set status messages (“Files panel shown” / “Files panel hidden”) instead of always expanding and using a static status.
This commit is contained in:
@@ -283,7 +283,7 @@ pub fn render_chat(frame: &mut Frame<'_>, app: &mut ChatApp) {
|
||||
}
|
||||
|
||||
constraints.push(Constraint::Length(input_height)); // Input
|
||||
constraints.push(Constraint::Length(5)); // System/Status output (3 lines content + 2 borders)
|
||||
constraints.push(Constraint::Length(4)); // System/Status output (2 lines content + 2 borders)
|
||||
constraints.push(Constraint::Length(3)); // Mode and shortcuts bar
|
||||
|
||||
let layout = Layout::default()
|
||||
|
||||
Reference in New Issue
Block a user