summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2018-11-19 13:09:41 +0100
committerMartin Wortschack <mwortschack@gitlab.com>2018-11-19 13:09:41 +0100
commit8b84a1db4904abd0dfcee576ed68ec8d252a94c4 (patch)
tree420354d75f00e845121327a21e9a1dbc1a7078f7
parent5977d217dcf34812a58e5813aae4954ddb3e88d7 (diff)
downloadgitlab-ce-8b84a1db4904abd0dfcee576ed68ec8d252a94c4.tar.gz
Add comment for breakpoint computation
-rw-r--r--app/assets/javascripts/pages/users/user_tabs.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/pages/users/user_tabs.js b/app/assets/javascripts/pages/users/user_tabs.js
index 7b77c27353f..aa537d4a43e 100644
--- a/app/assets/javascripts/pages/users/user_tabs.js
+++ b/app/assets/javascripts/pages/users/user_tabs.js
@@ -72,7 +72,11 @@ const CALENDAR_TEMPLATE = `
const CALENDAR_PERIOD_6_MONTHS = 6;
const CALENDAR_PERIOD_12_MONTHS = 12;
-const OVERVIEW_CALENDAR_BREAKPOINT = 924;
+/* computation based on
+ * width = (group + 1) * this.daySizeWithSpace + this.getExtraWidthPadding(group);
+ * (see activity_calendar.js)
+ */
+const OVERVIEW_CALENDAR_BREAKPOINT = 918;
export default class UserTabs {
constructor({ defaultAction, action, parentEl }) {