From 27a3505e028ab4a6af2386367c9d60e01eae04c7 Mon Sep 17 00:00:00 2001 From: Jose Ivan Date: Wed, 25 Jan 2017 11:27:42 -0800 Subject: Reverted the change from .second-block to .calender-block --- app/assets/javascripts/users/calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets/javascripts/users') diff --git a/app/assets/javascripts/users/calendar.js b/app/assets/javascripts/users/calendar.js index 7ffc546ffc1..ee8893818ea 100644 --- a/app/assets/javascripts/users/calendar.js +++ b/app/assets/javascripts/users/calendar.js @@ -88,7 +88,7 @@ var lastMonth, lastMonthX, month, x; if (a === 0 && stamp.day === 0) { month = stamp.date.getMonth(); - x = (_this.daySizeWithSpace * i + 1) + _this.daySizeWithSpace; + x = (_this.daySizeWithSpace * i + 41) + _this.daySizeWithSpace; lastMonth = _.last(_this.months); if (lastMonth != null) { lastMonthX = lastMonth.x; -- cgit v1.2.1 From 0d3fb680c6cb58cae1156e3aaaf551f48a232ca5 Mon Sep 17 00:00:00 2001 From: Jose Ivan Date: Thu, 26 Jan 2017 10:57:02 -0800 Subject: Added ltr direction for the calendar contribution month row --- app/assets/javascripts/users/calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/assets/javascripts/users') diff --git a/app/assets/javascripts/users/calendar.js b/app/assets/javascripts/users/calendar.js index ee8893818ea..e7280d643d3 100644 --- a/app/assets/javascripts/users/calendar.js +++ b/app/assets/javascripts/users/calendar.js @@ -88,7 +88,7 @@ var lastMonth, lastMonthX, month, x; if (a === 0 && stamp.day === 0) { month = stamp.date.getMonth(); - x = (_this.daySizeWithSpace * i + 41) + _this.daySizeWithSpace; + x = (_this.daySizeWithSpace * i + 1) + _this.daySizeWithSpace; lastMonth = _.last(_this.months); if (lastMonth != null) { lastMonthX = lastMonth.x; @@ -158,7 +158,7 @@ }; Calendar.prototype.renderMonths = function() { - return this.svg.append('g').selectAll('text').data(this.months).enter().append('text').attr('x', function(date) { + return this.svg.append('g').attr('direction', 'ltr').selectAll('text').data(this.months).enter().append('text').attr('x', function(date) { return date.x; }).attr('y', 10).attr('class', 'user-contrib-text').text((function(_this) { return function(date) { -- cgit v1.2.1