From 4421c0febbb03a1a4264729a70fb7c440a3b9ca8 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 21 Jun 2026 14:02:19 +0300 Subject: fix: add configurable pane gaps refs #271 --- src/ui.rs | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/ui.rs') diff --git a/src/ui.rs b/src/ui.rs index 9c6d24d8..42e132d1 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -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, }; -- cgit v1.2.3