pl-fe: fix 'why is the cat just in the corner of my screen'

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-15 19:24:41 +02:00
parent ef7d47a237
commit 1c70828836

View File

@ -93,6 +93,7 @@ const AccountHoverCard: React.FC<IAccountHoverCard> = ({ visible = true }) => {
],
whileElementsMounted: autoUpdate,
});
console.log(x, y, context, refs);
const { styles } = useTransitionStyles(context, {
initial: {
@ -124,8 +125,8 @@ const AccountHoverCard: React.FC<IAccountHoverCard> = ({ visible = true }) => {
<div
className={clsx({
'absolute transition-opacity w-[320px] z-[101] top-0 left-0': true,
'opacity-100': visible,
'opacity-0 pointer-events-none': !visible,
'opacity-100': visible && context.open,
'opacity-0 pointer-events-none': !visible || !context.open,
})}
ref={refs.setFloating}
style={{