mirror of https://github.com/helix-editor/helix
remove-margins-from-overlay
parent
6fb1aa2af6
commit
c185d403dc
|
@ -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)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue