Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dd3e7202
Commit
dd3e7202
authored
Aug 09, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed display styles when hiding the fly out navigation
Closes #36224
parent
1f51acc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/fly_out_nav.js
app/assets/javascripts/fly_out_nav.js
+2
-1
spec/javascripts/fly_out_nav_spec.js
spec/javascripts/fly_out_nav_spec.js
+1
-1
No files found.
app/assets/javascripts/fly_out_nav.js
View file @
dd3e7202
...
@@ -49,7 +49,8 @@ export const hideSubLevelItems = (el) => {
...
@@ -49,7 +49,8 @@ export const hideSubLevelItems = (el) => {
el
.
classList
.
remove
(
'
is-showing-fly-out
'
);
el
.
classList
.
remove
(
'
is-showing-fly-out
'
);
el
.
classList
.
remove
(
'
is-over
'
);
el
.
classList
.
remove
(
'
is-over
'
);
subItems
.
style
.
display
=
'
none
'
;
subItems
.
style
.
display
=
''
;
subItems
.
style
.
transform
=
''
;
subItems
.
classList
.
remove
(
'
is-above
'
);
subItems
.
classList
.
remove
(
'
is-above
'
);
};
};
...
...
spec/javascripts/fly_out_nav_spec.js
View file @
dd3e7202
...
@@ -59,7 +59,7 @@ describe('Fly out sidebar navigation', () => {
...
@@ -59,7 +59,7 @@ describe('Fly out sidebar navigation', () => {
expect
(
expect
(
el
.
querySelector
(
'
.sidebar-sub-level-items
'
).
style
.
display
,
el
.
querySelector
(
'
.sidebar-sub-level-items
'
).
style
.
display
,
).
toBe
(
'
none
'
);
).
toBe
(
''
);
});
});
it
(
'
does not hude subitems on mobile
'
,
()
=>
{
it
(
'
does not hude subitems on mobile
'
,
()
=>
{
...
...
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