mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
fix multiple tags not being seperated in details view (fixes #212)
This commit is contained in:
parent
f83228548b
commit
f45af0e3cf
2 changed files with 16 additions and 6 deletions
|
|
@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- min size for relative popups on small terminals ([#179](https://github.com/extrawurst/gitui/issues/179))
|
||||
- fix crash on resizing terminal to very small width ([#198](https://github.com/extrawurst/gitui/issues/198))
|
||||
- fix broken tags when using a different internal representation ([#206](https://github.com/extrawurst/gitui/issues/206))
|
||||
- tags are not cleanly seperated in details view ([#212](https://github.com/extrawurst/gitui/issues/212))
|
||||
|
||||
## [0.8.1] - 2020-07-07
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ use asyncgit::{
|
|||
CWD,
|
||||
};
|
||||
use crossterm::event::Event;
|
||||
use itertools::Itertools;
|
||||
use std::borrow::Cow;
|
||||
use sync::CommitTags;
|
||||
use tui::{
|
||||
|
|
@ -159,12 +160,20 @@ impl DetailsComponent {
|
|||
self.theme.text(false, false),
|
||||
));
|
||||
|
||||
for tag in &self.tags {
|
||||
res.push(Text::Styled(
|
||||
Cow::from(tag),
|
||||
self.theme.text(true, false),
|
||||
));
|
||||
}
|
||||
res.extend(
|
||||
self.tags
|
||||
.iter()
|
||||
.map(|tag| {
|
||||
Text::Styled(
|
||||
Cow::from(tag),
|
||||
self.theme.text(true, false),
|
||||
)
|
||||
})
|
||||
.intersperse(Text::Styled(
|
||||
Cow::from(","),
|
||||
self.theme.text(true, false),
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
res
|
||||
|
|
|
|||
Loading…
Reference in a new issue