fix: project display onm status

This commit is contained in:
Airenas Vaiciunas 2024-03-18 09:02:49 +02:00 committed by Nikolas Schmidt-Voigt
parent f13e463bc6
commit 7f082cdf3e

View file

@ -71,15 +71,13 @@ fn print_activity(
activity: Option<&activity::Activity>,
project: Option<&str>,
) -> fmt::Result {
let activity_style = Color::Green.bold();
let project_style = Style::new().italic();
match activity {
Some(activity) => {
write(f, "\n NOW: ", Style::new().italic().dimmed())?;
write(f, activity.description.as_str(), activity_style)?;
if let Some(pr_str) = project {
write(f, activity.description.as_str(), Color::Green.bold())?;
if project.is_none() {
write(f, " on ", Style::new().italic().dimmed())?;
write(f, pr_str, project_style)?;
write(f, &activity.project, Style::new().italic())?;
};
write(f, " ...... ", Style::new().dimmed())?;
write(