mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Improve Get patch button style
This commit is contained in:
parent
5e8ec06d9f
commit
f1f6d48127
|
@ -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 */
|
||||
|
|
|
@ -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/>
|
||||
|
|
|
@ -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});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue