diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-06-29 00:51:14 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-06-29 00:51:14 +0300 |
commit | eabe16802aa33fd0ed828bfa7228aa3dbcf95905 (patch) | |
tree | 2b8f70ab33fcbf589916e1851579f2f00514f7f3 /app | |
parent | 763e6549e73940445f280b6a0047570c674ba31f (diff) |
Resolve "Sidebar on jobs and wikis is missing at small widths"
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/job.js | 2 | ||||
-rw-r--r-- | app/assets/javascripts/pages/projects/wikis/wikis.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/job.js b/app/assets/javascripts/job.js index fc13f467675..d4f2a3ef7d3 100644 --- a/app/assets/javascripts/job.js +++ b/app/assets/javascripts/job.js @@ -164,7 +164,7 @@ export default class Job extends LogOutputBehaviours { // eslint-disable-next-line class-methods-use-this shouldHideSidebarForViewport() { const bootstrapBreakpoint = bp.getBreakpointSize(); - return bootstrapBreakpoint === 'xs' || bootstrapBreakpoint === 'sm'; + return bootstrapBreakpoint === 'xs'; } toggleSidebar(shouldHide) { diff --git a/app/assets/javascripts/pages/projects/wikis/wikis.js b/app/assets/javascripts/pages/projects/wikis/wikis.js index dcd0b9a76ce..d3e8dbf4000 100644 --- a/app/assets/javascripts/pages/projects/wikis/wikis.js +++ b/app/assets/javascripts/pages/projects/wikis/wikis.js @@ -48,7 +48,7 @@ export default class Wikis { static sidebarCanCollapse() { const bootstrapBreakpoint = bp.getBreakpointSize(); - return bootstrapBreakpoint === 'xs' || bootstrapBreakpoint === 'sm'; + return bootstrapBreakpoint === 'xs'; } renderSidebar() { |