Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
347e2060
Unverified
Commit
347e2060
authored
1 year ago
by
gabriellsh
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: Clicking uploaded file title replaces current tab (#29174)
parent
b03fcd9c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.changeset/friendly-apricots-juggle.md
+5
-0
5 additions, 0 deletions
.changeset/friendly-apricots-juggle.md
apps/meteor/client/components/message/content/attachments/file/GenericFileAttachment.tsx
+1
-5
1 addition, 5 deletions
...essage/content/attachments/file/GenericFileAttachment.tsx
with
6 additions
and
5 deletions
.changeset/friendly-apricots-juggle.md
0 → 100644
+
5
−
0
View file @
347e2060
---
"
@rocket.chat/meteor"
:
patch
---
fix: Clicking uploaded file title replaces current tab
This diff is collapsed.
Click to expand it.
apps/meteor/client/components/message/content/attachments/file/GenericFileAttachment.tsx
+
1
−
5
View file @
347e2060
...
...
@@ -36,11 +36,7 @@ export const GenericFileAttachment: FC<MessageAttachmentBase> = ({
<
MessageGenericPreviewContent
thumb
=
{
<
MessageGenericPreviewIcon
name
=
'attachment-file'
type
=
{
format
||
getFileExtension
(
title
)
}
/>
}
>
<
MessageGenericPreviewTitle
externalUrl
=
{
hasDownload
&&
link
?
getURL
(
link
)
:
undefined
}
data-qa-type
=
'attachment-title-link'
download
=
{
hasDownload
}
>
<
MessageGenericPreviewTitle
externalUrl
=
{
hasDownload
&&
link
?
getURL
(
link
)
:
undefined
}
data-qa-type
=
'attachment-title-link'
>
{
title
}
</
MessageGenericPreviewTitle
>
{
size
&&
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment