Continue reading »
Stash’s Pseudo Line Numbers
- By Jonathan Poh, Front-end Developer
- Developer
- On September 23, 2012
Stash is Atlassian's Git repository management tool, and one useful feature is to view your source code and diffs right inside your web browser.
In Stash 1.0, we built the source and diff views with a column-based layout, where the line numbers were contained in a div of their own, and the source or diff in another adjacent div and the two sides are synced up using careful use of CSS line-height and padding. This was so we could do things like the having the Blame column