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,8 +199,13 @@ ...@@ -199,8 +199,13 @@
padding-left: $sidebar_width; padding-left: $sidebar_width;
&.right-sidebar-collapsed { &.right-sidebar-collapsed {
@media (max-width: $screen-sm-max) {
padding-right: 0;
}
@media (min-width: $screen-sm-min) {
padding-right: $sidebar_collapsed_width; padding-right: $sidebar_collapsed_width;
} }
}
.sidebar-wrapper { .sidebar-wrapper {
width: $sidebar_width; width: $sidebar_width;
...@@ -225,8 +230,13 @@ ...@@ -225,8 +230,13 @@
padding-left: $sidebar_collapsed_width; padding-left: $sidebar_collapsed_width;
&.right-sidebar-collapsed { &.right-sidebar-collapsed {
@media (max-width: $screen-sm-max) {
padding-right: 0;
}
@media (min-width: $screen-sm-min) {
padding-right: $sidebar_collapsed_width; padding-right: $sidebar_collapsed_width;
} }
}
.sidebar-wrapper { .sidebar-wrapper {
width: $sidebar_collapsed_width; width: $sidebar_collapsed_width;
...@@ -292,7 +302,13 @@ ...@@ -292,7 +302,13 @@
} }
.page-sidebar-collapsed { .page-sidebar-collapsed {
@media (max-width: $screen-sm-max) {
@include collapsed-sidebar; @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