From 80d7b0bf29379825b767a8549fb8a68e039783de Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:14:21 -0500 Subject: [PATCH] Allow clicking on undownloaded generic attachment Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com> --- stylesheets/_modules.scss | 5 ----- ts/components/conversation/Message.tsx | 3 --- 2 files changed, 8 deletions(-) diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index 184c339e77c7..2a9b0f079b19 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -793,11 +793,6 @@ $message-padding-horizontal: 12px; padding-top: 4px; } -.module-message__generic-attachment--not-active { - cursor: default; - pointer-events: none; -} - .module-message__generic-attachment__icon-container { position: relative; user-select: none; diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index 40fdcfeab5c0..6ae91a50eeef 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -1087,9 +1087,6 @@ export class Message extends React.PureComponent { : null, withContentAbove ? 'module-message__generic-attachment--with-content-above' - : null, - !firstAttachment.url - ? 'module-message__generic-attachment--not-active' : null )} // There's only ever one of these, so we don't want users to tab into it