mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-13 21:21:17 +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;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.format_patch_button {
|
.diff_actions {
|
||||||
float:right;
|
float: right;
|
||||||
margin-top:13px;
|
}
|
||||||
padding: 7px;
|
|
||||||
|
.diff_actions button {
|
||||||
|
padding: 3px 6px 3px 6px;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
color:black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vi:ts=2:et */
|
/* vi:ts=2:et */
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
<div id="templates">
|
<div id="templates">
|
||||||
<!-- Commit template -->
|
<!-- Commit template -->
|
||||||
<div class="commit">
|
<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" />
|
<img class="avatar" src="avatar.png" />
|
||||||
<p>
|
<p>
|
||||||
<span class="author"></span><br/>
|
<span class="author"></span><br/>
|
||||||
|
|
|
@ -433,7 +433,7 @@ function update_diff(id, lsettings)
|
||||||
{
|
{
|
||||||
$('#diff_header').html(write_commit(j.commit));
|
$('#diff_header').html(write_commit(j.commit));
|
||||||
|
|
||||||
$(".format_patch_button").click(function() {
|
$('.format_patch').click(function() {
|
||||||
xhr_get('patch', {id: j.commit.id});
|
xhr_get('patch', {id: j.commit.id});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue