google / git-appraise-web

Web UI for git-appraise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inappropriate alignment in Ubuntu-Chrome.

vikaskyadav opened this issue · comments

Inappropriate alignment in time and date field.
This is probably arising due to using of AM & PM for time formats. Can't you use the 24-hour clock system?
Please check in this regard.

screenshot from 2017-01-26 22 18 38

The alignment issues annoy me too, but I don't know if there is a better solution for them.

The formatting is done on the client side using the Javascript Date.toLocaleString method, and the output of that is not fixed-width, causing the alignment to be a little funky.

However, the only formatting method for the Date object that I know of that produces fixed-width output is the 'toISOString' method, and that one always shows times with a UTC offset of zero.

Hence, if we want timestamps displayed in the user's timezone, we have to live with variable width ones.

I might set a minimum width for the timestamp field that is wider than the longest possible timestamp, but that probably won't solve the issue for every locale.