diff --git a/src/components/views/rooms/E2EIcon.js b/src/components/views/rooms/E2EIcon.js index 9480accb1a..39a90d1bec 100644 --- a/src/components/views/rooms/E2EIcon.js +++ b/src/components/views/rooms/E2EIcon.js @@ -52,6 +52,8 @@ const legacyRoomTitles = { }; const E2EIcon = ({isUser, status, className, size, onClick}) => { + const sizeThreshold = 25; // the size of an avatar + 1 + const [hover, setHover] = useState(false); const classes = classNames({ @@ -82,7 +84,7 @@ const E2EIcon = ({isUser, status, className, size, onClick}) => { const onMouseOut = () => setHover(false); let tip; - if (hover) { + if (hover && (!size || size <= sizeThreshold)) { tip = ; }