1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-24 08:22:29 +02:00

Making the CardDialog menu open to the left

This commit is contained in:
Jesús Espino 2020-10-27 15:05:56 +01:00
parent 5dbb352f0e
commit dfc29439b7
3 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@ type Props = {
class CardDialog extends React.Component<Props> {
render() {
const menu = (
<Menu>
<Menu position='left'>
<Menu.Text
id='delete'
name='Delete'

View File

@ -11,6 +11,9 @@
&.top {
bottom: 100%;
}
&.left {
right: 0;
}
.menu-options {
display: flex;

View File

@ -12,7 +12,7 @@ import './menu.scss'
type MenuProps = {
children: React.ReactNode
position?: 'top'|'bottom'
position?: 'top'|'bottom'|'left'
}
export default class Menu extends React.PureComponent<MenuProps> {