Commit cabb6171 authored by Jacob Schatz's avatar Jacob Schatz

Open sidebar button on mobile.

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