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

feat(viewport): horizontal scroll #236

Open
meowgorithm opened this issue Sep 12, 2022 Discussed in #235 · 0 comments
Open

feat(viewport): horizontal scroll #236

meowgorithm opened this issue Sep 12, 2022 Discussed in #235 · 0 comments
Labels
enhancement New feature or request

Comments

@meowgorithm
Copy link
Member

Discussed in #235

Originally posted by tty2 September 10, 2022
Is there any common way to have left/right scroll for viewport (or any other component)?

I'm working on the project that should show logs from a container.
If I set width == right corner of a terminal, I'll get long lines with line breaks (first screenshot).
As a result I can't use viewport.ScrollPercent cause it relies on number of lines and I lose some lines in the end.

Plus, for data like logs it's more convenient to have similar appearance (compare screenshots). But the problem of second way that I lose the end of the lines. Can I use second way and scroll left/right somehow?

Screenshot from 2022-09-10 22-19-27

Screenshot from 2022-09-10 22-19-02

@meowgorithm meowgorithm added the enhancement New feature or request label Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant