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:
2025-10-13 19:18:50 +02:00
parent 80dffa9f41
commit ae0dd3fc51
2 changed files with 10 additions and 4 deletions

View File

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