Skip to content

Commit ce8a0bd

Browse files
authored
Merge pull request #56 from nallwhy/fix-for-new-github
Fix for new github
2 parents 4c30629 + f0417f6 commit ce8a0bd

File tree

8 files changed

+34
-60
lines changed

8 files changed

+34
-60
lines changed

chrome/iso.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.ic-toggle {
22
position: relative;
3-
top: 10px;
3+
top: 0px;
44
right: 10px;
55
float: right;
66
margin-left: 20px;
@@ -98,9 +98,6 @@
9898

9999
.ic-contributions-wrapper {
100100
position: relative;
101-
border-top: solid 1px #d8d8d8;
102-
border-right: solid 1px #d8d8d8;
103-
border-left: solid 1px #d8d8d8;
104101
}
105102

106103
/*

chrome/iso.js

Lines changed: 8 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-86 Bytes
Binary file not shown.

firefox/isometric-contributions/iso.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.ic-toggle {
22
position: relative;
3-
top: 10px;
3+
top: 0px;
44
right: 10px;
55
float: right;
66
margin-left: 20px;
@@ -98,9 +98,6 @@
9898

9999
.ic-contributions-wrapper {
100100
position: relative;
101-
border-top: solid 1px #d8d8d8;
102-
border-right: solid 1px #d8d8d8;
103-
border-left: solid 1px #d8d8d8;
104101
}
105102

106103
/*

firefox/isometric-contributions/iso.js

Lines changed: 8 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

safari/isometric-contributions.safariextension/iso.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.ic-toggle {
22
position: relative;
3-
top: 10px;
3+
top: 0px;
44
right: 10px;
55
float: right;
66
margin-left: 20px;
@@ -98,9 +98,6 @@
9898

9999
.ic-contributions-wrapper {
100100
position: relative;
101-
border-top: solid 1px #d8d8d8;
102-
border-right: solid 1px #d8d8d8;
103-
border-left: solid 1px #d8d8d8;
104101
}
105102

106103
/*

safari/isometric-contributions.safariextension/iso.js

Lines changed: 8 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/iso.coffee

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,16 @@ class Iso
4646

4747
initUI: ->
4848
($ '<div class="ic-contributions-wrapper"></div>')
49-
.insertBefore '#contributions-calendar'
50-
($ '<canvas id="isometric-contributions" width="728" height="470"></canvas>')
49+
.insertBefore ($ '.js-calendar-graph')
50+
($ '<canvas id="isometric-contributions" width="720" height="470"></canvas>')
5151
.appendTo '.ic-contributions-wrapper'
5252

53-
contributionsBox = (($ '#contributions-calendar').closest '.boxed-group')
54-
insertLocation = (($ '#contributions-calendar').closest '.boxed-group').find 'h3'
55-
56-
toggleClass = ''
57-
# Check for lock octicon
58-
if ((contributionsBox.closest '.box').find '.box-header .octicon-lock').length
59-
toggleClass = 'ic-with-lock'
53+
contributionsBox = ($ '.js-contribution-graph')
54+
insertLocation = ($ '.js-contribution-graph').find 'h2'
6055

6156
# Inject toggle
6257
htmlToggle = """
63-
<span class="ic-toggle #{toggleClass}">
58+
<span class="ic-toggle">
6459
<a href="#" class="ic-toggle-option tooltipped tooltipped-nw squares" data-ic-option="squares" aria-label="Normal chart view"></a>
6560
<a href="#" class="ic-toggle-option tooltipped tooltipped-nw cubes" data-ic-option="cubes" aria-label="Isometric chart view"></a>
6661
</span>
@@ -254,14 +249,14 @@ class Iso
254249
($ html).appendTo $ '.ic-contributions-wrapper'
255250

256251
renderIsometricChart: ->
257-
SIZE = 12
252+
SIZE = 10
258253
GH_OFFSET = 13
259254
MAX_HEIGHT = 100
260255

261256
canvas = document.getElementById 'isometric-contributions'
262257

263258
# create pixel view container in point
264-
point = new obelisk.Point 87, 100
259+
point = new obelisk.Point 110, 110
265260
pixelView = new obelisk.PixelView canvas, point
266261

267262
contribCount = null

0 commit comments

Comments
 (0)