[PATCH] hgweb: fix tab alignment in file view

Brodie Rao dackze at gmail.com
Sat May 16 12:08:35 CDT 2009


On May 15, 2009, at 5:34 AM, Rocco Rutte wrote:

> Hi,
>
> * Brodie Rao wrote:
>
>> I haven't tested this with IE (don't have it handy). For IE6 and
>> older, it should render as it did before. I believe it should work in
>> IE7 and IE8 as it does in other browsers.
>
> For file view, tab-indented lines are off by 1 in Opera, Safari looks
> okay. Now only annotate and diff views are missing. Annotate can be  
> done
> easily using 3 column table for all styles (like monoblue already  
> does).

It looks like it's being indented correctly in Opera 9.64 on OS X. The  
font is bigger in Opera for whatever reason, but if you scale it back,  
it looks the same.

When the viewport's width is scaled back, the line number is wrapped  
onto its own line. I'm not sure how to work around that, so I think  
using inline-block might not be the best solution.

Other options I can think of:

- Adjusting the amount of whitespace that pads line numbers (in  
hgweb.webcommands).
- Using display: table-*.


More information about the Mercurial-devel mailing list