Making the CardDialog menu open to the left
This commit is contained in:
parent
5dbb352f0e
commit
dfc29439b7
3 changed files with 5 additions and 2 deletions
|
@ -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'
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
&.top {
|
||||
bottom: 100%;
|
||||
}
|
||||
&.left {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.menu-options {
|
||||
display: flex;
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue