Skip to content

Commit b15c1c8

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

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Github_Commit_Whitespace/Github_Commit_Whitespace.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.4.1
15+
// @version 1.4.2
1616
// @grant none
1717
// ==/UserScript==
1818
/* global unsafeWindow */
@@ -36,15 +36,15 @@
3636
s.style.color = "#333"; // set color because of css selector `p.explain .octicon`;
3737

3838
var a = document.createElement("a");
39-
a.classList.add("minibutton", "tooltipped", "tooltipped-n");
39+
a.classList.add("btn", "btn-sm", "tooltipped", "tooltipped-n");
4040
if (on) { a.classList.add("selected"); }
4141
a.setAttribute("href", url(on));
4242
a.setAttribute("rel", "nofollow");
4343
a.setAttribute("aria-label", on ? "Show commit whitespace" : "Hide commit whitespaces");
4444
a.appendChild(s);
4545

4646
var g = document.createElement("div");
47-
g.classList.add("GithubCommitWhitespaceButton", "button-group", "right");
47+
g.classList.add("GithubCommitWhitespaceButton", "right");
4848
g.style.margin = "0 10px 0 0"; // give us some room;
4949
g.appendChild(a);
5050

Github_Commit_Whitespace/README.md

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

3232
## Version History
3333

34+
* **1.4.2**
35+
* Fixed issues after recent layout updates;
3436
* **1.4.1**
3537
* Tooltips now on top;
3638
* **1.4**

0 commit comments

Comments
 (0)