Skip to content

Option to exclude vertical padding for live progress renderer#2100

Merged
patriksvensson merged 3 commits into
spectreconsole:mainfrom
james-newell-forge:feat/exclude_vertical_padding
Apr 27, 2026
Merged

Option to exclude vertical padding for live progress renderer#2100
patriksvensson merged 3 commits into
spectreconsole:mainfrom
james-newell-forge:feat/exclude_vertical_padding

Conversation

@james-newell-forge

@james-newell-forge james-newell-forge commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Fixes: #1726

  • I have read the Contribution Guidelines
  • I have checked that there isn't already another pull request that solves the above issue
  • All newly added code is adequately covered by tests
  • All existing tests are still running without errors

No AI was used in commit

Changes

Currently, a live progress widget forces you to have a 1-top, 1-bottom vertical padding and there is no option to change this. This commit adds a new option to Progress.cs called ExcludeVerticalPadding that when set excludes the Padder added in DefaultProgressRenderer.cs (default false to keep existing behavior).

@james-newell-forge

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="ForgeGlobal"

Comment thread src/Spectre.Console/Live/Progress/Progress.cs
@patriksvensson patriksvensson merged commit dbbed60 into spectreconsole:main Apr 27, 2026
3 checks passed
This was referenced Jun 11, 2026
This was referenced Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it possible to exclude linebreaks before and after Progress bars.

2 participants