When you have more than one branch displayed in the graph, the description, etc gets pushed further and further from the graph the more branches there are. This appears to be what is described in http://bz.selenic.com/show_bug.cgi?id=2683 but that has been marked as resolved with a fix that doesn't address the issue described (though does fix another issue). The cause is an incorrect padding-left calculation. Currently the padding is calculated as var left = (this.columns + 1) * this.bg_height. The correct calculation is: var colwidth = this.box_size - 1; var left = (this.bg_height - colwidth) + (this.columns + 1) * colwidth;
Fix available at: https://bitbucket.org/magao/mercurial-hgweb-issue3626
Oops - should have linked to the changeset: https://bitbucket.org/magao/mercurial-hgweb-issue3626/changeset/c1e4c92d04ec10666bb9801379c8938ecb996b2e
Oops - still had an off-by-one error that wasn't apparent until I went to a section with a lot of branches showing. Fixed in: https://bitbucket.org/magao/mercurial-hgweb-issue3626/changeset/1cc47aaadd9c239d90b1081cba8c53f393d85245 which also uses tabs to match the existing templates.
Patches are to be sent to mercurial-devel mailing list. Please read http://mercurial.selenic.com/wiki/ContributingChanges. Thank you for contribution.
Collapsed patch posted.
Fixed by http://selenic.com/repo/hg/rev/ffe3630cb243 Tim Delaney <timothy.c.delaney@gmail.com> hgweb: fix incorrect graph padding calculation (issue3626) hgweb has an incorrect padding calculation, causing the text to move further away from the graph the more branches there are (issue3626). This patch fixes all existing templates (gitweb, monoblue, paper and spartan). Tests updated by Patrick Mezard <patrick@mezard.eu> (please test the fix)