Fix missing properties on BoardCard
This commit is contained in:
parent
e77a6e7acd
commit
e5029ff6fd
3 changed files with 5 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
&:hover {
|
||||
background-color: #eeeeee;
|
||||
.MenuWrapper {
|
||||
.optionsMenu {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
|||
background-color: rgba(90, 200, 255, 0.2);
|
||||
}
|
||||
|
||||
.MenuWrapper {
|
||||
.optionsMenu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
|
|
|
@ -59,7 +59,7 @@ class BoardCard extends React.Component<BoardCardProps, BoardCardState> {
|
|||
this.props.onDragEnd(e)
|
||||
}}
|
||||
>
|
||||
<MenuWrapper stopPropagationOnToggle={true}>
|
||||
<MenuWrapper className='optionsMenu' stopPropagationOnToggle={true}>
|
||||
<div className='octo-hoverbutton square'><div className='imageOptions'/></div>
|
||||
<Menu>
|
||||
<Menu.Text
|
||||
|
|
|
@ -10,6 +10,7 @@ type Props = {
|
|||
onToggle?: (open: boolean) => void;
|
||||
isDisabled?: boolean;
|
||||
stopPropagationOnToggle?: boolean;
|
||||
className?: string
|
||||
}
|
||||
|
||||
type State = {
|
||||
|
@ -84,7 +85,7 @@ export default class MenuWrapper extends React.PureComponent<Props, State> {
|
|||
|
||||
return (
|
||||
<div
|
||||
className='MenuWrapper'
|
||||
className={`MenuWrapper ${this.props.className || ''}`}
|
||||
onClick={this.toggle}
|
||||
ref={this.node}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue