Skip to content

feat(viewport): horizontal scroll #236

@meowgorithm

Description

@meowgorithm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions