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

Formatting issue with rich panels #14

Open
adam-moss opened this issue Aug 1, 2023 · 2 comments
Open

Formatting issue with rich panels #14

adam-moss opened this issue Aug 1, 2023 · 2 comments

Comments

@adam-moss
Copy link

Hi,

Thank you for this plugin, it has been good to see it's rapid evolution over the past couple of weeks 😄

Following the 0.7.0 update there appears to be a formatting issue when using terminal output contained within a rich panel:

Expected:

$ my-cli
 Usage: my-cli [OPTIONS] COMMAND [ARGS]...                                     
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --about               -a        Show the application about dialog and exit.  │
│ --version             -v        Show the application version and exit.       │
│ --install-completion            Install completion for the current shell.    │
│ --show-completion               Show completion for the current shell, to    │
│                                 copy it or customize the installation.       │
│ --help                          Show this message and exit.                  │
╰──────────────────────────────────────────────────────────────────────────────╯

Actual:

$ my-cli
 Usage: my-cli [OPTIONS] COMMAND [ARGS]...                                     
                                                                                
╭─ Options ────────────────────────────────────────────────────────────────────╮

│ --about               -a        Show the application about dialog and exit. │

│ --version             -v        Show the application version and exit. │

│ --install-completion            Install completion for the current shell. │

│ --show-completion               Show completion for the current shell, to │

│                                 copy it or customize the installation. │

│ --help                          Show this message and exit. │

╰──────────────────────────────────────────────────────────────────────────────╯

The line spacing is probably a css tweak I imagine, the collapsed white-space on the right I'm not too sure about.

Please let me know if you require an further info.

@daxartio
Copy link
Collaborator

daxartio commented Aug 1, 2023

Hi!

Thank you.

In 0.8.0 it looks like this

image

I removed extra spaces and now it looks

image

@daxartio
Copy link
Collaborator

daxartio commented Aug 1, 2023

About the line spacing, you actually can change the css style and will get this result

image

I will think how it will be made more comfortable

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

No branches or pull requests

2 participants