Fix missing properties on BoardCard

This commit is contained in:
Chen-I Lim 2020-10-26 08:56:42 -07:00
parent e77a6e7acd
commit e5029ff6fd
3 changed files with 5 additions and 4 deletions

View file

@ -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;

View file

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

View file

@ -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}
>