diff options
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -83,7 +83,7 @@ pub(crate) use self::{ mobile_switcher_areas, mobile_switcher_max_scroll, mobile_switcher_target_at, mobile_switcher_workspace_doc_range, MobileSwitcherTarget, }, - panes::pane_is_scrolled_back, + panes::{apply_pane_chrome, pane_inner_rect, pane_is_scrolled_back}, tabs::compute_tab_bar_view, widgets::{centered_popup_rect, modal_stack_areas}, }; @@ -235,7 +235,13 @@ fn compute_view_internal( let split_borders = app .active .and_then(|i| app.workspaces.get(i)) - .map(|ws| ws.layout.splits(terminal_area)) + .map(|ws| { + if ws.zoomed { + Vec::new() + } else { + ws.layout.splits(terminal_area) + } + }) .unwrap_or_default(); let pane_infos = compute_pane_infos( @@ -310,7 +316,13 @@ fn compute_mobile_view( let split_borders = app .active .and_then(|i| app.workspaces.get(i)) - .map(|ws| ws.layout.splits(terminal_area)) + .map(|ws| { + if ws.zoomed { + Vec::new() + } else { + ws.layout.splits(terminal_area) + } + }) .unwrap_or_default(); let pane_infos = compute_pane_infos( @@ -1001,6 +1013,7 @@ mod tests { rect: Rect::new(0, 0, 12, 8), inner_rect: Rect::new(1, 1, 9, 6), scrollbar_rect: Some(Rect::new(10, 1, 1, 6)), + borders: ratatui::widgets::Borders::ALL, is_focused: true, }; |
