浏览代码

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

master
Avram Tudor 4 年前
父节点
当前提交
b74c8b5d1f
没有帐户链接到提交者的电子邮件

+ 5
- 5
css/modals/invite/_invite_more.scss 查看文件

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

+ 7
- 16
react/features/invite/components/add-people-dialog/web/InviteByEmailSection.js 查看文件

13
     IconYahoo
13
     IconYahoo
14
 } from '../../../../base/icons';
14
 } from '../../../../base/icons';
15
 import { Tooltip } from '../../../../base/tooltip';
15
 import { Tooltip } from '../../../../base/tooltip';
16
-import { copyText, openURLInBrowser } from '../../../../base/util';
16
+import { copyText } from '../../../../base/util';
17
 
17
 
18
 type Props = {
18
 type Props = {
19
 
19
 
52
         copyText(inviteText);
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
      * Toggles the email invite drawer.
56
      * Toggles the email invite drawer.
69
      *
57
      *
112
                             content = { t(tooltipKey) }
100
                             content = { t(tooltipKey) }
113
                             key = { idx }
101
                             key = { idx }
114
                             position = 'top'>
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
                                 <Icon src = { icon } />
108
                                 <Icon src = { icon } />
118
-                            </div>
109
+                            </a>
119
                         </Tooltip>
110
                         </Tooltip>
120
                     ))
111
                     ))
121
                 }
112
                 }

正在加载...
取消
保存