Display complete commit title in Travis Builds

The commit title is limited to 50 chars and cropped on server side.

At least 72 chars (this is the typical limit - one line in 80 chars width console, see https://preslav.me/2015/02/21/what-s-with-the-50-72-rule/). Longer titles than 72 chars should have elipsis “…” on the end and the full commit title should be display on mouse hover.

The article on the link advises exactly what Travis is doing: that commit’s title (the 1st line) should be <= 50 characters. A build list (as opposed to a build page) only shows titles.

Would this actually be helpful on its own? Tooltip text can’t be copied. I would expect the title to be visually truncated but still present in DOM in full (so it can be copied) but I don’t know if that’s possible to implement easily without breaking the layout.

FWIW, Web UI’s source code is at https://github.com/travis-ci/travis-web.

Thanks, PR submitted: https://github.com/travis-ci/travis-web/pull/2289

1 Like