[go: up one dir, main page]

Skip to content

Dynamically line wrap commit messages in the Gitlab UI

Problem to solve

When users write commit messages with long lines and do not manually break them at around 80 characters, GitLab will not wrap these lines in the commit view. Instead, it will insert horizontal scrollbars, resulting in a poor user experience. I have created a small example to demonstrate the issue:

scrollbar

Proposal

Long lines in commit messages should be dynamically wrapped at the boundary of the field in the user interface where they are displayed. This is also what other tools such as GitHub do (see here for an example). When the browser window is resized, the line wraps automatically adapt the the new size of the field where the commit message is displayed.

wrap_github

Intended users

Anyone reading the commit history in the Gitlab UI.

@gitlab-bot label UX typefeature

Edited by chschmir