Fixed opener sizing

This commit is contained in:
Joshua Barretto 2025-11-20 14:38:00 +00:00
parent c1caa5dc12
commit 41965454c7

View file

@ -541,8 +541,8 @@ impl Visual for Opener {
.options
.requested_height()
.max(1)
.min(frame.size()[1] * 2 / 3);
let preview_sz = frame.size()[1].saturating_sub(options_sz);
.min(frame.size()[1] / 2);
let preview_sz = frame.size()[1].saturating_sub(options_sz + path_input_sz);
if let Some((buffer, cursor_id, input)) = &mut self.preview {
frame.rect([0, 0], [frame.size()[0], preview_sz]).with(|f| {