Commit d7514ce8 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'mw-gl-breakpoints-11' into 'master'

Replace breakpoints with GlBreakpointInstance in pages/projects/wikis/wikis.js

See merge request gitlab-org/gitlab!22017
parents 52837476 e956674d
import bp from '../../../breakpoints'; import { GlBreakpointInstance as bp } from '@gitlab/ui/dist/utils';
import { s__, sprintf } from '~/locale'; import { s__, sprintf } from '~/locale';
export default class Wikis { export default class Wikis {
...@@ -52,7 +52,7 @@ export default class Wikis { ...@@ -52,7 +52,7 @@ export default class Wikis {
static sidebarCanCollapse() { static sidebarCanCollapse() {
const bootstrapBreakpoint = bp.getBreakpointSize(); const bootstrapBreakpoint = bp.getBreakpointSize();
return bootstrapBreakpoint === 'xs'; return bootstrapBreakpoint === 'xs' || bootstrapBreakpoint === 'sm';
} }
renderSidebar() { renderSidebar() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment