feat(tui): branch names look more like 'pills'
All checks were successful
Rust / build (push) Successful in 10m7s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m21s
All checks were successful
Rust / build (push) Successful in 10m7s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m21s
Use round brackets
This commit is contained in:
parent
d2048d8a34
commit
2b09872131
1 changed files with 5 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
use color_eyre::owo_colors::OwoColorize;
|
||||||
//
|
//
|
||||||
use git_next_core::git::graph::Log;
|
use git_next_core::git::graph::Log;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
@ -84,12 +85,10 @@ impl From<LogLine> for Line<'_> {
|
||||||
branches.sort();
|
branches.sort();
|
||||||
branches
|
branches
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|branch| Span::from(branch).style(Style::default().fg(Color::Blue)))
|
.map(|branch| format!("({branch})"))
|
||||||
.for_each(|span| {
|
.map(Span::from)
|
||||||
spans.push("[".into());
|
.map(|span| span.style(Style::default().fg(Color::White).bg(Color::Blue)))
|
||||||
spans.push(span);
|
.for_each(|span| spans.push(span));
|
||||||
spans.push("]".into());
|
|
||||||
});
|
|
||||||
spans.push(" ".into());
|
spans.push(" ".into());
|
||||||
spans.push(message.into());
|
spans.push(message.into());
|
||||||
Line::from(spans)
|
Line::from(spans)
|
||||||
|
|
Loading…
Reference in a new issue