This commit is contained in:
吴杨帆 2026-05-17 18:03:36 +08:00 committed by GitHub
commit 5d5658e14b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ use ratatui::{
layout::{Constraint, Direction, Layout, Rect},
style::{Modifier, Style},
text::{Line, Span, Text},
widgets::Clear,
Frame,
};
use std::{borrow::Cow, cell::Cell};
@ -70,6 +71,7 @@ impl DetailsComponent {
});
self.scroll.reset();
self.current_width.set(0);
if let Some(tags) = tags {
self.tags.extend(tags);
@ -303,6 +305,7 @@ impl DrawableComponent for DetailsComponent {
let can_scroll = usize::from(height) < number_of_lines;
f.render_widget(Clear, chunks[1]);
f.render_widget(
dialog_paragraph(
&format!(