ProfileHoverCard: set z-index with Tailwind class

settings-alert
Alex Gleason 2022-06-20 16:49:23 -05:00
rodzic 1d79b59bbc
commit f1023b3f80
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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