[gitg] Improve Get patch button style
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Improve Get patch button style
- Date: Mon, 30 Jun 2014 21:04:03 +0000 (UTC)
commit f1f6d48127bbcc6155ad12ab5c178b7dc43493d4
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Mon Jun 30 23:03:17 2014 +0200
Improve Get patch button style
libgitg/resources/diff-view.css | 12 +++++++-----
libgitg/resources/diff-view.html | 4 +++-
libgitg/resources/diff-view.js | 2 +-
3 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/libgitg/resources/diff-view.css b/libgitg/resources/diff-view.css
index 16886d0..c724ad4 100644
--- a/libgitg/resources/diff-view.css
+++ b/libgitg/resources/diff-view.css
@@ -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 */
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index b7456ab..5a0f1c0 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -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/>
diff --git a/libgitg/resources/diff-view.js b/libgitg/resources/diff-view.js
index 68248ac..7f8f3c5 100644
--- a/libgitg/resources/diff-view.js
+++ b/libgitg/resources/diff-view.js
@@ -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});
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]