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> {