Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OHR Support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projects
OHR Support
Commits
4956e9ca
Commit
4956e9ca
authored
12 years ago
by
Andrew Smith
Committed by
Felix Schäfer
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Limit the size of the projects dropdown menu. #1016
parent
7c1b1750
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/javascripts/application.js
+7
-0
7 additions, 0 deletions
public/javascripts/application.js
public/stylesheets/application.css
+12
-0
12 additions, 0 deletions
public/stylesheets/application.css
with
19 additions
and
0 deletions
public/javascripts/application.js
+
7
−
0
View file @
4956e9ca
...
...
@@ -571,6 +571,13 @@ jQuery(document).ready(function($) {
// Click on the menu header with a dropdown menu
$
(
'
#account-nav .drop-down
'
).
live
(
'
click
'
,
function
(
event
)
{
var
menuItem
=
$
(
this
);
var
menuUl
=
menuItem
.
find
(
'
> ul
'
);
menuUl
.
css
(
'
height
'
,
'
auto
'
);
if
(
menuUl
.
height
()
>
$
.
viewportHeight
())
{
var
windowHeight
=
$
.
viewportHeight
()
-
150
;
menuUl
.
css
({
'
height
'
:
windowHeight
});
}
toggleTopMenu
(
menuItem
);
...
...
This diff is collapsed.
Click to expand it.
public/stylesheets/application.css
+
12
−
0
View file @
4956e9ca
...
...
@@ -2797,6 +2797,17 @@ input: -moz-placeholder {
border
:
1px
solid
#b7b7b7
;
border-top
:
0px
;
background-color
:
#FFFFFF
;
display
:
none
;
position
:
absolute
;
height
:
auto
;
min-width
:
200px
;
left
:
-1px
;
z-index
:
20
;
border
:
1px
solid
#b7b7b7
;
border-top
:
0px
;
background-color
:
#FFFFFF
;
overflow
:
hidden
;
overflow-y
:
auto
;
}
#header
li
.last-child
>
ul
{
...
...
@@ -2826,6 +2837,7 @@ input: -moz-placeholder {
margin-right
:
6px
;
height
:
15px
;
line-height
:
15px
;
overflow
:
hidden
;
}
#header
li
.drop-down
li
>
a
.separator
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment