Browse Source

fix(invite) fix mailto links not working on Brave for iOS

master
Avram Tudor 4 years ago
parent
commit
b74c8b5d1f
No account linked to committer's email address

+ 5
- 5
css/modals/invite/_invite_more.scss View File

@@ -97,18 +97,18 @@
97 97
                 border-top: none;
98 98
                 border-radius: 0 0 3px 3px;
99 99
 
100
-                & > * {
101
-                    display: flex;
102
-                    justify-content: center;
100
+                .copy-invite-icon, .provider-icon {
103 101
                     align-items: center;
102
+                    cursor: pointer;
103
+                    display: flex;
104 104
                     height: 40px;
105
+                    place-content: center;
105 106
                     width: 40px;
106
-                    border-radius: 4px;
107
-                    cursor: pointer;
108 107
                 }
109 108
 
110 109
                 &:hover > div:hover {
111 110
                     background-color: rgba(255, 255, 255, 0.2);
111
+                    border-radius: 4px;
112 112
                 }
113 113
 
114 114
                 & > :not(:last-child) {

+ 7
- 16
react/features/invite/components/add-people-dialog/web/InviteByEmailSection.js View File

@@ -13,7 +13,7 @@ import {
13 13
     IconYahoo
14 14
 } from '../../../../base/icons';
15 15
 import { Tooltip } from '../../../../base/tooltip';
16
-import { copyText, openURLInBrowser } from '../../../../base/util';
16
+import { copyText } from '../../../../base/util';
17 17
 
18 18
 type Props = {
19 19
 
@@ -52,18 +52,6 @@ function InviteByEmailSection({ inviteSubject, inviteText, t }: Props) {
52 52
         copyText(inviteText);
53 53
     }
54 54
 
55
-    /**
56
-     * Opens an email provider containing the conference invite.
57
-     *
58
-     * @param {string} url - The url to be opened.
59
-     * @returns {Function}
60
-     */
61
-    function _onSelectProvider(url) {
62
-        return function() {
63
-            openURLInBrowser(url, true);
64
-        };
65
-    }
66
-
67 55
     /**
68 56
      * Toggles the email invite drawer.
69 57
      *
@@ -112,10 +100,13 @@ function InviteByEmailSection({ inviteSubject, inviteText, t }: Props) {
112 100
                             content = { t(tooltipKey) }
113 101
                             key = { idx }
114 102
                             position = 'top'>
115
-                            <div
116
-                                onClick = { _onSelectProvider(url) }>
103
+                            <a
104
+                                className = 'provider-icon'
105
+                                href = { url }
106
+                                rel = 'noopener noreferrer'
107
+                                target = '_blank'>
117 108
                                 <Icon src = { icon } />
118
-                            </div>
109
+                            </a>
119 110
                         </Tooltip>
120 111
                     ))
121 112
                 }

Loading…
Cancel
Save