From 27a3505e028ab4a6af2386367c9d60e01eae04c7 Mon Sep 17 00:00:00 2001 From: Jose Ivan Date: Wed, 25 Jan 2017 11:27:42 -0800 Subject: [PATCH] Reverted the change from .second-block to .calender-block --- app/assets/javascripts/users/calendar.js | 2 +- app/assets/stylesheets/framework/blocks.scss | 1 - app/assets/stylesheets/framework/calendar.scss | 1 + changelogs/unreleased/contribution-calendar-scroll.yml | 4 ++++ 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 changelogs/unreleased/contribution-calendar-scroll.yml 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; diff --git a/app/assets/stylesheets/framework/blocks.scss b/app/assets/stylesheets/framework/blocks.scss index 099e95fed0e..592ef0d647f 100644 --- a/app/assets/stylesheets/framework/blocks.scss +++ b/app/assets/stylesheets/framework/blocks.scss @@ -56,7 +56,6 @@ &.second-block { margin-top: -1px; margin-bottom: 0; - direction: rtl; } &.footer-block { diff --git a/app/assets/stylesheets/framework/calendar.scss b/app/assets/stylesheets/framework/calendar.scss index ef921a8c6a9..1d2d1bfc0d7 100644 --- a/app/assets/stylesheets/framework/calendar.scss +++ b/app/assets/stylesheets/framework/calendar.scss @@ -1,6 +1,7 @@ .calender-block { padding-left: 0; padding-right: 0; + direction: rtl; @media (min-width: $screen-sm-min) and (max-width: $screen-md-max) { overflow-x: scroll; diff --git a/changelogs/unreleased/contribution-calendar-scroll.yml b/changelogs/unreleased/contribution-calendar-scroll.yml new file mode 100644 index 00000000000..a504d59e61c --- /dev/null +++ b/changelogs/unreleased/contribution-calendar-scroll.yml @@ -0,0 +1,4 @@ +--- +title: contribution calendar scrolls from right to left +merge_request: +author: