From a963a9eac78a13e72c569e9635e07b004698869f Mon Sep 17 00:00:00 2001 From: Salman Farooq Date: Fri, 6 Sep 2024 02:42:32 +0500 Subject: [PATCH] remove-margins-from-overlay --- helix-term/src/ui/overlay.rs | 2 +- helix-term/src/ui/picker.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/ui/overlay.rs b/helix-term/src/ui/overlay.rs index ff184d4073fa9..6f49c9217e0b7 100644 --- a/helix-term/src/ui/overlay.rs +++ b/helix-term/src/ui/overlay.rs @@ -19,7 +19,7 @@ pub struct Overlay { pub fn overlaid(content: T) -> Overlay { Overlay { content, - calc_child_size: Box::new(|rect: Rect| clip_rect_relative(rect.clip_bottom(2), 90, 90)), + calc_child_size: Box::new(|rect: Rect| clip_rect_relative(rect.clip_bottom(2), 100, 100)), } } diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index 82fe9689164de..633dff7ed97e0 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -960,7 +960,7 @@ impl Component for Picker MIN_AREA_WIDTH_FOR_PREVIEW; let picker_width = if render_preview { - area.width / 2 + area.width * 3 / 8 } else { area.width };