mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
Added max height limit on filter options dropdown (#3313)
* Added max height limit on filter options dropdown * Updated tests * lint fix
This commit is contained in:
parent
88ad387166
commit
6e6bc36f4a
@ -4,7 +4,7 @@ exports[`components/viewHeader/filterValue return filterValue 1`] = `
|
||||
<div>
|
||||
<div
|
||||
aria-label="menuwrapper"
|
||||
class="MenuWrapper"
|
||||
class="MenuWrapper filterValue"
|
||||
role="button"
|
||||
>
|
||||
<button
|
||||
@ -86,7 +86,7 @@ exports[`components/viewHeader/filterValue return filterValue and click Status 1
|
||||
<div>
|
||||
<div
|
||||
aria-label="menuwrapper"
|
||||
class="MenuWrapper"
|
||||
class="MenuWrapper filterValue"
|
||||
role="button"
|
||||
>
|
||||
<button
|
||||
@ -105,7 +105,7 @@ exports[`components/viewHeader/filterValue return filterValue and click Status w
|
||||
<div>
|
||||
<div
|
||||
aria-label="menuwrapper"
|
||||
class="MenuWrapper"
|
||||
class="MenuWrapper filterValue"
|
||||
role="button"
|
||||
>
|
||||
<button
|
||||
|
6
webapp/src/components/viewHeader/filterValue.scss
Normal file
6
webapp/src/components/viewHeader/filterValue.scss
Normal file
@ -0,0 +1,6 @@
|
||||
.filterValue {
|
||||
.Menu {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
@ -12,6 +12,8 @@ import Button from '../../widgets/buttons/button'
|
||||
import Menu from '../../widgets/menu'
|
||||
import MenuWrapper from '../../widgets/menuWrapper'
|
||||
|
||||
import './filterValue.scss'
|
||||
|
||||
type Props = {
|
||||
view: BoardView
|
||||
filter: FilterClause
|
||||
@ -35,7 +37,7 @@ const filterValue = (props: Props): JSX.Element|null => {
|
||||
}
|
||||
|
||||
return (
|
||||
<MenuWrapper>
|
||||
<MenuWrapper className='filterValue'>
|
||||
<Button>{displayValue}</Button>
|
||||
<Menu>
|
||||
{template.options.map((o) => (
|
||||
|
Loading…
Reference in New Issue
Block a user