fix area.inner() param type

pull/10122/head
kyfanc 3 months ago
parent 3aa350edbe
commit d10bce758f

@ -100,7 +100,7 @@ const SEPARATOR_HEIGHT: u16 = 1;
impl Component for Hover { impl Component for Hover {
fn render(&mut self, area: Rect, surface: &mut Buffer, cx: &mut Context) { fn render(&mut self, area: Rect, surface: &mut Buffer, cx: &mut Context) {
let margin = Margin::horizontal(1); let margin = Margin::horizontal(1);
let area = area.inner(&margin); let area = area.inner(margin);
let (Some(header), Some(contents)) = (self.header.as_ref(), self.contents.as_ref()) else { let (Some(header), Some(contents)) = (self.header.as_ref(), self.contents.as_ref()) else {
log::info!("markdown not ready"); log::info!("markdown not ready");

Loading…
Cancel
Save