BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e7650492
Commit
e7650492
authored
Mar 29, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collapsed sidebar opens over instead of pushing content.
parent
509bc3fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
right_sidebar.js.coffee
app/assets/javascripts/right_sidebar.js.coffee
+4
-1
sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+4
-0
No files found.
app/assets/javascripts/right_sidebar.js.coffee
View file @
e7650492
...
...
@@ -21,7 +21,6 @@ class @Sidebar
i
.
hide
()
sidebarDropdownLoaded
:
(
e
)
->
console
.
log
'loaded'
$sidebarCollapsedIcon
=
$
(
@
).
closest
(
'.block'
).
find
(
'.sidebar-collapsed-icon'
)
img
=
$sidebarCollapsedIcon
.
find
(
'img'
)
$sidebarCollapsedIcon
.
find
(
'i.fa-spin'
).
remove
()
...
...
@@ -35,6 +34,7 @@ class @Sidebar
sidebarCollapseClicked
:
(
e
)
->
e
.
preventDefault
()
$block
=
$
(
@
).
closest
(
'.block'
)
$
(
'aside'
)
.
find
(
'.gutter-toggle'
)
.
trigger
(
'click'
)
...
...
@@ -43,11 +43,13 @@ class @Sidebar
if
$editLink
.
length
$editLink
.
trigger
(
'click'
)
$block
.
addClass
(
'collapse-after-update'
)
$
(
'.page-with-sidebar'
).
addClass
(
'with-overlay'
)
sidebarDropdownHidden
:
(
e
)
->
$block
=
$
(
@
).
closest
(
'.block'
)
if
$block
.
hasClass
(
'collapse-after-update'
)
$block
.
removeClass
(
'collapse-after-update'
)
$
(
'.page-with-sidebar'
).
removeClass
(
'with-overlay'
)
$
(
'aside'
)
.
find
(
'.gutter-toggle'
)
.
trigger
(
'click'
)
\ No newline at end of file
app/assets/stylesheets/framework/sidebar.scss
View file @
e7650492
...
...
@@ -304,4 +304,8 @@
@media
(
min-width
:
$screen-md-min
)
{
padding-right
:
$gutter_width
;
}
&
.with-overlay
{
padding-right
:
$sidebar_collapsed_width
;
}
}
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