fix(ui): render detail popup labels in bold
Span::style assigns rather than patches, so chaining it after bold() discarded the modifier that bold() had just set and every detail popup label rendered plain. Apply the modifier to the style itself instead. Snapshots compare rendered text and cannot observe styling, so this is pinned by asserting the label span's modifier directly.
This commit is contained in:
5 files changed
+16
-6
No files matched your search
@@ -204,7 +204,7 @@ fn draw_movie_details(f: &mut Frame<'_>, app: &App<'_>, area: Rect) {
|
||||
let style = style_from_download_status(download_status, is_monitored, status.clone());
|
||||
|
||||
Line::from(vec![
|
||||
title.bold().style(style),
|
||||
Span::styled(title, style.bold()),
|
||||
Span::styled(split[1..].join(":"), style),
|
||||
])
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user