Skip to content

Commit 094a6c8

Browse files
committed
🐛 Fixed issues after recent layout updates;
1 parent 05fd386 commit 094a6c8

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Github_Commit_Diff/Github_Commit_Diff.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// @supportURL https://github.com/jerone/UserScripts/issues
1313
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
1414
// @include https://github.com/*
15-
// @version 1.6.1
15+
// @version 1.6.2
1616
// @grant none
1717
// ==/UserScript==
1818
/* global unsafeWindow */
@@ -41,15 +41,15 @@
4141
s.style.color = "#333"; // set color because of css selector `p.explain .octicon`;
4242

4343
var a = document.createElement("a");
44-
a.classList.add("minibutton", "tooltipped", "tooltipped-n");
44+
a.classList.add("btn", "btn-sm", "tooltipped", "tooltipped-n");
4545
a.setAttribute("href", getPatchOrDiffHref("diff"));
4646
a.setAttribute("rel", "nofollow");
4747
a.setAttribute("aria-label", "Show commit diff.\r\nHold Shift to open commit patch.");
4848
a.appendChild(s);
4949
a.appendChild(document.createTextNode(" Diff"));
5050

5151
var g = document.createElement("div");
52-
g.classList.add("GithubCommitDiffButton", "button-group", "right");
52+
g.classList.add("GithubCommitDiffButton", "right");
5353
g.style.margin = "0 10px 0 0"; // give us some room;
5454
g.appendChild(a);
5555

Github_Commit_Diff/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ This works on commits, pull requests and compare pages.
2929

3030
## Version History
3131

32+
* **1.6.2**
33+
* Fixed issues after recent layout updates;
3234
* **1.6.1**
3335
* Tooltips now on top;
3436
* **1.6**

0 commit comments

Comments
 (0)