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
ICAT
Datahub
Commits
8c1edc10
Commit
8c1edc10
authored
Aug 26, 2020
by
Axel Bocciarelli
Browse files
Restrict max-height of manager menu
parent
e2b72056
Pipeline
#31935
passed with stage
in 3 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/Menu/ManagerMenu.js
View file @
8c1edc10
...
...
@@ -2,6 +2,7 @@ import { uniq } from 'lodash-es';
import
React
from
'
react
'
;
import
{
Button
,
Glyphicon
,
MenuItem
,
NavDropdown
}
from
'
react-bootstrap
'
;
import
{
LinkContainer
}
from
'
react-router-bootstrap
'
;
import
styles
from
'
./Menu.module.css
'
;
class
ManagerMenu
extends
React
.
Component
{
getBeamlineList
(
instruments
)
{
...
...
@@ -97,6 +98,7 @@ class ManagerMenu extends React.Component {
eventKey
=
{
3
}
title
=
{
navDropdownTitle
}
id
=
"
basic-nav-dropdown
"
className
=
{
styles
.
managerMenu
}
>
<
LinkContainer
to
=
"
/usermanagement
"
>
<
MenuItem
eventKey
=
{
3.3
}
>
...
...
src/components/Menu/Menu.module.css
View file @
8c1edc10
...
...
@@ -6,3 +6,9 @@
display
:
flex
;
align-items
:
center
;
}
.managerMenu
>
:global
(
.dropdown-menu
)
{
max-height
:
40rem
;
overflow
:
hidden
scroll
;
scrollbar-width
:
thin
;
}
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