Commit e956674d authored by Martin Wortschack's avatar Martin Wortschack Committed by Kushal Pandya

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

parent 52837476
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