{props.children}
-
- {hovered && (
+ {isVisible && (
-
+
)}
)
}
-function Card({did, hide}: {did: string; hide: () => void}) {
+let Card = ({did, hide}: {did: string; hide: () => void}): React.ReactNode => {
const t = useTheme()
const profile = useProfileQuery({did})
@@ -173,6 +220,7 @@ function Card({did, hide}: {did: string; hide: () => void}) {
)
}
+Card = React.memo(Card)
function Inner({
profile,
diff --git a/web/index.html b/web/index.html
index 06d00dec..b059e69e 100644
--- a/web/index.html
+++ b/web/index.html
@@ -239,6 +239,16 @@
inset:0;
animation: rotate 500ms linear infinite;
}
+
+ @keyframes avatarHoverFadeIn {
+ from { opacity: 0; }
+ to { opacity: 1; }
+ }
+
+ @keyframes avatarHoverFadeOut {
+ from { opacity: 1; }
+ to { opacity: 0; }
+ }