mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
Merge f05e9bed3e into 8619c07f3f
This commit is contained in:
commit
5d5658e14b
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ use ratatui::{
|
||||||
layout::{Constraint, Direction, Layout, Rect},
|
layout::{Constraint, Direction, Layout, Rect},
|
||||||
style::{Modifier, Style},
|
style::{Modifier, Style},
|
||||||
text::{Line, Span, Text},
|
text::{Line, Span, Text},
|
||||||
|
widgets::Clear,
|
||||||
Frame,
|
Frame,
|
||||||
};
|
};
|
||||||
use std::{borrow::Cow, cell::Cell};
|
use std::{borrow::Cow, cell::Cell};
|
||||||
|
|
@ -70,6 +71,7 @@ impl DetailsComponent {
|
||||||
});
|
});
|
||||||
|
|
||||||
self.scroll.reset();
|
self.scroll.reset();
|
||||||
|
self.current_width.set(0);
|
||||||
|
|
||||||
if let Some(tags) = tags {
|
if let Some(tags) = tags {
|
||||||
self.tags.extend(tags);
|
self.tags.extend(tags);
|
||||||
|
|
@ -303,6 +305,7 @@ impl DrawableComponent for DetailsComponent {
|
||||||
|
|
||||||
let can_scroll = usize::from(height) < number_of_lines;
|
let can_scroll = usize::from(height) < number_of_lines;
|
||||||
|
|
||||||
|
f.render_widget(Clear, chunks[1]);
|
||||||
f.render_widget(
|
f.render_widget(
|
||||||
dialog_paragraph(
|
dialog_paragraph(
|
||||||
&format!(
|
&format!(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue