diff --git a/src/Spectre.Console/Widgets/Progress/Columns/TaskDescriptionColumn.cs b/src/Spectre.Console/Widgets/Progress/Columns/TaskDescriptionColumn.cs index 0292b14..686a908 100644 --- a/src/Spectre.Console/Widgets/Progress/Columns/TaskDescriptionColumn.cs +++ b/src/Spectre.Console/Widgets/Progress/Columns/TaskDescriptionColumn.cs @@ -11,11 +11,16 @@ namespace Spectre.Console /// protected internal override bool NoWrap => true; + /// + /// Gets or sets the alignment of the task description. + /// + public Justify Alignment { get; set; } = Justify.Right; + /// public override IRenderable Render(RenderContext context, ProgressTask task, TimeSpan deltaTime) { var text = task.Description?.RemoveNewLines()?.Trim(); - return new Markup(text ?? string.Empty).Overflow(Overflow.Ellipsis).RightAligned(); + return new Markup(text ?? string.Empty).Overflow(Overflow.Ellipsis).Alignment(Alignment); } } }