Open vanillajonathan opened 4 years ago
Partially fixed with #159 and #160. But indeed it should only take the first line.
Maybe something like this:
$lines = explode("\n", $commit_message);
$subject = $lines[0];
Can also be written as:
$subject = explode("\n", $commit_message)[0];
Only include the first line commit messages to prevent horizontal scrolling.
Example of a commit with a long message: https://gitlab.freedesktop.org/mesa/mesa/commit/84e707e6f2292dd886b8385fab0ced5122e35876
Mesamatrix displays this as:
Also of interest is to investigate the
text-overflow
CSS property.