Skip to content

Commit

Permalink
remove-margins-from-overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
salman-farooq-sh committed Dec 21, 2024
1 parent 33f3392 commit a963a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helix-term/src/ui/overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Overlay<T> {
pub fn overlaid<T>(content: T) -> Overlay<T> {
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)),
}
}

Expand Down
2 changes: 1 addition & 1 deletion helix-term/src/ui/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ impl<I: 'static + Send + Sync, D: 'static + Send + Sync> Component for Picker<I,
self.show_preview && self.file_fn.is_some() && area.width > MIN_AREA_WIDTH_FOR_PREVIEW;

let picker_width = if render_preview {
area.width / 2
area.width * 3 / 8
} else {
area.width
};
Expand Down

0 comments on commit a963a9e

Please sign in to comment.