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/layout.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/layout.rs') diff --git a/src/layout.rs b/src/layout.rs index 06426f85..cd611d10 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -2,7 +2,10 @@ use std::cmp::Reverse; -use ratatui::layout::{Direction, Rect}; +use ratatui::{ + layout::{Direction, Rect}, + widgets::Borders, +}; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)] pub struct PaneId(u32); @@ -37,6 +40,8 @@ pub struct PaneInfo { /// Visible scrollbar lane, when scrollback is present. `inner_rect` may still /// exclude a stable hidden gutter when this is `None`. pub scrollbar_rect: Option, + /// Borders drawn around this pane after UI chrome is applied. + pub borders: Borders, pub is_focused: bool, } @@ -414,6 +419,7 @@ fn collect_panes(node: &Node, area: Rect, focus: PaneId, result: &mut Vec