Commit cabb6171 authored by Jacob Schatz's avatar Jacob Schatz

Open sidebar button on mobile.

parent c3e07b6f
......@@ -225,8 +225,8 @@ $ ->
$gutterIcon.closest('a').trigger('click')
$(document)
.off 'click', 'aside .gutter-toggle'
.on 'click', 'aside .gutter-toggle', (e) ->
.off 'click', '.gutter-toggle'
.on 'click', '.gutter-toggle', (e) ->
e.preventDefault()
$this = $(this)
$thisIcon = $this.find 'i'
......
......@@ -199,7 +199,12 @@
padding-left: $sidebar_width;
&.right-sidebar-collapsed {
padding-right: $sidebar_collapsed_width;
@media (max-width: $screen-sm-max) {
padding-right: 0;
}
@media (min-width: $screen-sm-min) {
padding-right: $sidebar_collapsed_width;
}
}
.sidebar-wrapper {
......@@ -225,7 +230,12 @@
padding-left: $sidebar_collapsed_width;
&.right-sidebar-collapsed {
padding-right: $sidebar_collapsed_width;
@media (max-width: $screen-sm-max) {
padding-right: 0;
}
@media (min-width: $screen-sm-min) {
padding-right: $sidebar_collapsed_width;
}
}
.sidebar-wrapper {
......@@ -292,7 +302,13 @@
}
.page-sidebar-collapsed {
@include collapsed-sidebar;
@media (max-width: $screen-sm-max) {
@include collapsed-sidebar;
padding-right: 0;
}
@media (min-width: $screen-sm-min) {
@include collapsed-sidebar;
}
}
.page-sidebar-expanded {
......
......@@ -5,7 +5,7 @@ module IssuablesHelper
end
def sidebar_gutter_collapsed_class
"right-sidebar-#{sidebar_gutter_collapsed? ? 'collapsed' : 'expanded'}"
"hidden-xs right-sidebar-#{sidebar_gutter_collapsed? ? 'collapsed' : 'expanded'}"
end
def issuables_count(issuable)
......
......@@ -18,6 +18,9 @@
%span.hidden-sm.hidden-md.hidden-lg
=icon('circle-o')
%a.btn.btn-default.pull-right.hidden-sm.hidden-md.hidden-lg.gutter-toggle{ href: "#" }
«
.issue-meta
%strong.identifier
Issue ##{@issue.iid}
......
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