diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-21 14:02:19 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-21 14:03:59 +0300 |
| commit | 4421c0febbb03a1a4264729a70fb7c440a3b9ca8 (patch) | |
| tree | 72d1ade2b453ac1948daa85c50c2b6e3599cc204 /src/ui.rs | |
| parent | 92a10fc044d42b216317696a4e8e6f70d7cc7a7d (diff) | |
fix: add configurable pane gaps
refs #271
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, }; |
