codebrag icon indicating copy to clipboard operation
codebrag copied to clipboard

Keep commit message on top of diffs

Open kenji21 opened this issue 11 years ago • 2 comments

When reviewing some files, I had to scroll up to the commit message to have precision and understand goal of code updates.

To do this, I tried to update css of the div having class="authored-box" :

top: 0;
position: absolute;
padding-top: 2em;
padding-bottom: 2em;
background-color: white;
width: 94%;

But with this, the first diff is partly hidden because it is behind the commit message and some elements (line numbers, dots) are above the authored-box while scrolling :

image

kenji21 avatar Nov 19 '14 22:11 kenji21

Sounds like great idea, will see how to do that. Thanks!

mostr avatar Nov 20 '14 06:11 mostr

A related other enhancement : have file name also kept (useful when reviewing "relatively big" files), but just below the commit message. Maybe it could be a separate issue, because I think it is more difficult than keeping the commit on top.

kenji21 avatar Dec 19 '14 10:12 kenji21