We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6e54d2 commit bb75f1bCopy full SHA for bb75f1b
src/list.rs
@@ -266,7 +266,7 @@ where
266
StatefulWidget::render(list, inner_area, buf, &mut self.state.borrow_mut());
267
268
if matches!(self.current_mode, Mode::Search) {
269
- let search_area = centered_rect(60, 20, area);
+ let search_area = centered_rect(60, (5. / area.height as f64 * 100.) as u16, area);
270
Clear.render(search_area, buf);
271
self.search.render(search_area, buf, true);
272
}
0 commit comments