mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(links): warn on unhandled middle clicks and desktop links (#3311)
This commit is contained in:
1 parent
ebf91ccc76
commit
bef20cba85
9 files changed
+71
-69
No files matched your search
@@ -12,7 +12,7 @@ import {
|
||||
import {getCachedDateTimeFormat} from '@app/features/i18n/utils/IntlCache';
|
||||
import {SafeMarkdown} from '@app/features/messaging/components/markdown';
|
||||
import {MarkdownContext} from '@app/features/messaging/components/markdown/renderers/RendererTypes';
|
||||
import {openExternalUrlWithWarning} from '@app/features/messaging/utils/ExternalLinkUtils';
|
||||
import {handleExternalLinkAuxClick, openExternalUrlWithWarning} from '@app/features/messaging/utils/ExternalLinkUtils';
|
||||
import StreamerMode from '@app/features/streamer_mode/state/StreamerMode';
|
||||
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
|
||||
import markupStyles from '@app/features/theme/styles/Markup.module.css';
|
||||
@@ -469,6 +469,7 @@ const ConnectionCard: React.FC<{
|
||||
rel="noopener noreferrer"
|
||||
className={styles.connectionCard}
|
||||
onClick={(e) => onLinkClick(e, url)}
|
||||
onAuxClick={(e) => handleExternalLinkAuxClick(e, url)}
|
||||
data-flx="user.user-profile-shared.connection-card.connection-card.link-click"
|
||||
>
|
||||
{icon}
|
||||
@@ -494,6 +495,7 @@ const ConnectionCard: React.FC<{
|
||||
rel="noopener noreferrer"
|
||||
className={styles.connectionExternalLink}
|
||||
onClick={(e) => onLinkClick(e, url)}
|
||||
onAuxClick={(e) => handleExternalLinkAuxClick(e, url)}
|
||||
data-flx="user.user-profile-shared.connection-card.connection-external-link.link-click"
|
||||
>
|
||||
<ArrowSquareOutIcon
|
||||
@@ -577,6 +579,7 @@ export const UserProfileConnections: React.FC<{
|
||||
rel="noopener noreferrer"
|
||||
className={styles.connectionCompactIcon}
|
||||
onClick={(e) => handleConnectionClick(e, url)}
|
||||
onAuxClick={(e) => handleExternalLinkAuxClick(e, url)}
|
||||
data-flx="user.user-profile-shared.user-profile-connections.connection-compact-icon.connection-click"
|
||||
>
|
||||
{connection.type === ConnectionTypes.BLUESKY ? (
|
||||
|
||||
Reference in new issue
Block a user