RocketChat / RocketChat/Rocket.Chat

PDFs are not shown collapsed, makes rooms very slow

Open
#15,082 12 comments 0 reactions 1 assignee View on GitHub

@tassoevan is already working on this.

Since Aug 19, 2019.

area: ui/ux sponsored type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

PDFs are always shown as preview. This makes the app very slow when many PDFs are attached to a room.

Steps to reproduce:

Open room with attached PDFs (in MacOS App and Firefox Browser)

Expected behavior:

All PDFs should be shown collapsed

Actual behavior:

All PDFs are shown as preview, not collapsed. The room does not show the bottommost message, you find yourself somewhere in the middle (this might be the correct position if all PDFs would be collapsed). Sometimes the PDF are shown upsidedown.

Server Setup Information:
  • Version of Rocket.Chat Server: 1.1.3
  • Operating System: ubuntu 16.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v8.11.4
  • MongoDB Version: 3.4.20

Client Setup App

  • Operating System: macOS 10.14.6
  • App Version: 2.15.3
  • Installation type: App Store

Client Setup Browser

  • Operating System: macOS 10.14.6
  • Firefox 68.0.1
Additional context

The "Auto Load Images" setting is false, "Save Mobile Bandwidth" is false and "Collapse Embedded Media by Default " is true

Workaround in Settings - Layout - Custom CSS:
.attachment-canvas{
	display:none !important;
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.