mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
Fixed the hover issue for sub-menu
This commit is contained in:
parent
7ae2e62388
commit
156abe2d80
@ -62,11 +62,17 @@
|
|||||||
|
|
||||||
.fileElement-delete-download {
|
.fileElement-delete-download {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: flex;
|
display: none;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
.fileElement-delete-download {
|
||||||
|
position: absolute;
|
||||||
|
display: flex;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.fileElement-download-btn {
|
.fileElement-download-btn {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
@ -122,8 +122,18 @@ const AttachmentElement = (props: Props): JSX.Element|null => {
|
|||||||
document.body.removeChild(anchor)
|
document.body.removeChild(anchor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleMouseLeave = () => {
|
||||||
|
const tempDiv = document.createElement('div')
|
||||||
|
document.body.appendChild(tempDiv)
|
||||||
|
tempDiv.click()
|
||||||
|
document.body.removeChild(tempDiv)
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='FileElement mr-4'>
|
<div
|
||||||
|
className='FileElement mr-4'
|
||||||
|
onMouseLeave={handleMouseLeave}
|
||||||
|
>
|
||||||
{showConfirmationDialogBox && <ConfirmationDialogBox dialogBox={confirmDialogProps}/>}
|
{showConfirmationDialogBox && <ConfirmationDialogBox dialogBox={confirmDialogProps}/>}
|
||||||
<div className='fileElement-icon-division'>
|
<div className='fileElement-icon-division'>
|
||||||
<CompassIcon
|
<CompassIcon
|
||||||
|
Loading…
Reference in New Issue
Block a user