Improve Get patch button style

This commit is contained in:
Jesse van den Kieboom 2014-06-30 23:03:17 +02:00
parent 5e8ec06d9f
commit f1f6d48127
3 changed files with 11 additions and 7 deletions

View file

@ -245,12 +245,14 @@ span.hunk_stats, span.file_path {
vertical-align: middle;
}
.format_patch_button {
float:right;
margin-top:13px;
padding: 7px;
.diff_actions {
float: right;
}
.diff_actions button {
padding: 3px 6px 3px 6px;
margin-right: 3px;
color:black;
color: black;
}
/* vi:ts=2:et */

View file

@ -9,7 +9,9 @@
<div id="templates">
<!-- Commit template -->
<div class="commit">
<button class="format_patch_button">Get Patch</button>
<div class="diff_actions">
<button class="format_patch">Get patch</button>
</div>
<img class="avatar" src="avatar.png" />
<p>
<span class="author"></span><br/>

View file

@ -433,7 +433,7 @@ function update_diff(id, lsettings)
{
$('#diff_header').html(write_commit(j.commit));
$(".format_patch_button").click(function() {
$('.format_patch').click(function() {
xhr_get('patch', {id: j.commit.id});
});
}