remove-margins-from-overlay

pull/12311/head
Salman Farooq 2024-09-06 02:42:32 +05:00
parent 6fb1aa2af6
commit c185d403dc
2 changed files with 2 additions and 2 deletions

View File

@ -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)),
}
}

View File

@ -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
};