Skip to content

Commit 786d853

Browse files
authored
Merge pull request matrix-org#4067 from matrix-org/foldleft/12191-pull-big-tooltip
don't show tooltips on big icons
2 parents e3ec415 + 37f1104 commit 786d853

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/views/right_panel/VerificationPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default class VerificationPanel extends React.PureComponent {
149149
<p>{_t("You've successfully verified %(displayName)s!", {
150150
displayName: member.displayName || member.name || member.userId,
151151
})}</p>
152-
<E2EIcon isUser={true} status="verified" size={128} />
152+
<E2EIcon isUser={true} status="verified" size={128} hideTooltip={true} />
153153
<p>Verify all users in a room to ensure it's secure.</p>
154154

155155
<AccessibleButton kind="primary" className="mx_UserInfo_wideButton" onClick={this.props.onClose}>

src/components/views/rooms/E2EIcon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const legacyRoomTitles = {
5151
[E2E_STATE.VERIFIED]: _td("All sessions in this encrypted room are trusted"),
5252
};
5353

54-
const E2EIcon = ({isUser, status, className, size, onClick}) => {
54+
const E2EIcon = ({isUser, status, className, size, onClick, hideTooltip}) => {
5555
const [hover, setHover] = useState(false);
5656

5757
const classes = classNames({
@@ -82,7 +82,7 @@ const E2EIcon = ({isUser, status, className, size, onClick}) => {
8282
const onMouseOut = () => setHover(false);
8383

8484
let tip;
85-
if (hover) {
85+
if (hover && !hideTooltip) {
8686
tip = <Tooltip label={e2eTitle ? _t(e2eTitle) : ""} />;
8787
}
8888

0 commit comments

Comments
 (0)