Skip to content

Wrapping long lines in code views #1827

@silverwind

Description

@silverwind

Currently, Gitea does not wrap long lines of code, making it harder to look at code and diffs that contains lines that extend beyond the screen width.

Is there a general interest in having long lines automatically wrapped? It's a simple CSS tweak (similar to what I've done here for GitHub):

Before:

After:

This might not work too well on small screens, where I think it might be better to not wrap those lines (horizontal scrolling is easier on touch).

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions