Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
fd930e958b51
Commit
cabb6171
authored
Feb 29, 2016
by
Jacob Schatz
Browse files
Open sidebar button on mobile.
parent
d8df5b5b76ad
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/application.js.coffee
View file @
fd930e95
...
...
@@ -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'
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
fd930e95
...
...
@@ -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
{
...
...
app/helpers/issuables_helper.rb
View file @
fd930e95
...
...
@@ -5,7 +5,7 @@ def sidebar_gutter_toggle_icon
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
)
...
...
app/views/projects/issues/show.html.haml
View file @
fd930e95
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment