Open sidebar button on mobile.

This commit is contained in:
Jacob Schatz 2016-02-29 18:04:40 -05:00
parent c3e07b6f9c
commit cabb61719d
4 changed files with 25 additions and 6 deletions

View file

@ -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'

View file

@ -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 {

View file

@ -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)

View file

@ -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}