[PATCH] hgweb: handle overlapping text in graph (issue2570)

Mads Kiilerich mads at kiilerich.com
Sun Feb 13 17:16:33 CST 2011


Afuna wrote, On 02/13/2011 11:51 AM:
> # HG changeset patch
> # User Afuna<afunamatata at gmail.com>
> # Date 1297594264 -28800
> # Node ID 18769cfbff5f9fbcaed6cb4d23e54ba7688e315d
> # Parent  d4ab9486e514dd24e21a2ca3b6c439ea13d85cab
> hgweb: handle overlapping text in graph (issue2570)
>
> Prevent long commit messages from overlapping other commits and making them
> unreadable.
>
> diff --git a/mercurial/templates/static/style-coal.css b/mercurial/templates/static/style-coal.css
> --- a/mercurial/templates/static/style-coal.css
> +++ b/mercurial/templates/static/style-coal.css
> @@ -244,6 +244,7 @@ ul#graphnodes {
>   	top: -1.0em;
>   	list-style: none inside none;
>   	padding: 0;
> +	width: 100%;
>   }
>
>   ul#nodebgs {
> @@ -255,6 +256,7 @@ ul#nodebgs {
>
>   ul#graphnodes li, ul#nodebgs li {
>   	height: 39px;
> +	overflow: hidden;

IIRC this has been discussed before somewhere, and the reasoning against 
hiding the overflow was that this is a developers tool, so correctness 
is more important than prettiness.

A compromise could perhaps be to show the overflow on mouseover only.

/Mads


More information about the Mercurial-devel mailing list