sforkowany z mirror/soapbox
ProfileHoverCard: set z-index with Tailwind class
rodzic
1d79b59bbc
commit
f1023b3f80
|
@ -97,12 +97,12 @@ export const ProfileHoverCard: React.FC<IProfileHoverCard> = ({ visible = true }
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classNames({
|
className={classNames({
|
||||||
'absolute transition-opacity w-[320px] z-50 top-0 left-0': true,
|
'absolute transition-opacity w-[320px] z-[100] top-0 left-0': true,
|
||||||
'opacity-100': visible,
|
'opacity-100': visible,
|
||||||
'opacity-0 pointer-events-none': !visible,
|
'opacity-0 pointer-events-none': !visible,
|
||||||
})}
|
})}
|
||||||
ref={setPopperElement}
|
ref={setPopperElement}
|
||||||
style={{...styles.popper, zIndex: 100}}
|
style={styles.popper}
|
||||||
{...attributes.popper}
|
{...attributes.popper}
|
||||||
onMouseEnter={handleMouseEnter(dispatch)}
|
onMouseEnter={handleMouseEnter(dispatch)}
|
||||||
onMouseLeave={handleMouseLeave(dispatch)}
|
onMouseLeave={handleMouseLeave(dispatch)}
|
||||||
|
|
Ładowanie…
Reference in New Issue