提交 eabe1680 编写于 作者: C Clement Ho 提交者: Mike Greiling

Resolve "Sidebar on jobs and wikis is missing at small widths"

上级 763e6549
...@@ -164,7 +164,7 @@ export default class Job extends LogOutputBehaviours { ...@@ -164,7 +164,7 @@ export default class Job extends LogOutputBehaviours {
// eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this
shouldHideSidebarForViewport() { shouldHideSidebarForViewport() {
const bootstrapBreakpoint = bp.getBreakpointSize(); const bootstrapBreakpoint = bp.getBreakpointSize();
return bootstrapBreakpoint === 'xs' || bootstrapBreakpoint === 'sm'; return bootstrapBreakpoint === 'xs';
} }
toggleSidebar(shouldHide) { toggleSidebar(shouldHide) {
......
...@@ -48,7 +48,7 @@ export default class Wikis { ...@@ -48,7 +48,7 @@ export default class Wikis {
static sidebarCanCollapse() { static sidebarCanCollapse() {
const bootstrapBreakpoint = bp.getBreakpointSize(); const bootstrapBreakpoint = bp.getBreakpointSize();
return bootstrapBreakpoint === 'xs' || bootstrapBreakpoint === 'sm'; return bootstrapBreakpoint === 'xs';
} }
renderSidebar() { renderSidebar() {
......
---
title: Fix sidebar collapse breapoints for job and wiki pages
merge_request:
author:
type: fixed
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册