diff options
| author | lukeflo | 2025-10-05 11:59:24 +0200 |
|---|---|---|
| committer | lukeflo | 2025-10-05 11:59:24 +0200 |
| commit | 606716f064c1151ab9e8617ff76fd4b95f4a2c57 (patch) | |
| tree | 3fe84b1e98b3f0a549f701b1a43b654849069ef4 /src/tui | |
| parent | f5adcd0fad71828646b5047c661a0d8524a3fc9c (diff) | |
| download | bibiman-606716f064c1151ab9e8617ff76fd4b95f4a2c57.tar.gz bibiman-606716f064c1151ab9e8617ff76fd4b95f4a2c57.zip | |
add functions to make sanitized data from PR #57 visible in the information tab too
Diffstat (limited to 'src/tui')
| -rw-r--r-- | src/tui/ui.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tui/ui.rs b/src/tui/ui.rs index 3e6e24c..87d8c29 100644 --- a/src/tui/ui.rs +++ b/src/tui/ui.rs @@ -894,7 +894,7 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, Style::new().fg(cfg.colors.author_color), ), ])); - if cur_entry.subtitle.is_some() { + if let Some(subtitle) = cur_entry.subtitle() { lines.push(Line::from(vec![ Span::styled("Title: ", style_value), Span::styled( @@ -910,7 +910,7 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, .add_modifier(Modifier::ITALIC), ), Span::styled( - cur_entry.subtitle(), + subtitle, Style::new() .fg(cfg.colors.title_color) .add_modifier(Modifier::ITALIC), @@ -999,7 +999,7 @@ pub fn render_selected_item(app: &mut App, cfg: &BibiConfig, frame: &mut Frame, } lines.push(Line::from("")); lines.push(Line::from(vec![Span::styled( - cur_entry.abstract_text.clone(), + cur_entry.get_abstract(), Style::new().fg(cfg.colors.main_text_color), )])); lines |
