Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More control over output - padding #1542

Open
marss72 opened this issue May 9, 2024 · 2 comments
Open

More control over output - padding #1542

marss72 opened this issue May 9, 2024 · 2 comments

Comments

@marss72
Copy link

marss72 commented May 9, 2024

Is your feature request related to a problem? Please describe.
Yes. I love having some padding on the left when building a Console UI (not cli tools, but interactive app). There is no solution (or at least I don't know about it)

Describe the solution you'd like
Add padding for more types, like spinners and much more. So like spinners would have a something like IRenderable (something similar), that would contain config how the spinner should be rendered (padding, position, ...)

Describe alternatives you've considered
Creating a new spinner with two space padding on the left for every frame. This is possible but not clean and should get implemented into this library.

Additional context
None.


Please upvote 👍 this issue if you are interested in it.

@patriksvensson
Copy link
Contributor

Have you seen the Padder widget? https://spectreconsole.net/api/spectre.console/padder/

@marss72
Copy link
Author

marss72 commented May 10, 2024

Have you seen the Padder widget? https://spectreconsole.net/api/spectre.console/padder/

Yes, but this doesn't work for things like status, or at least I don't know how to implement it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 🕑
Development

No branches or pull requests

2 participants