Skip to content

Message HTML export produces a ~1MB CSS file #19441

@anoadragon453

Description

@anoadragon453

Steps to reproduce

When exporting 1MB of messages from a room through the 'Export chat' button in the sidebar, the resulting export ends up being 40KB of message history, 180KB of images and 884KB of CSS.

> ls
css  js  messages.html  room.png  users
> du -hd 1 *
884K	css
4.0K	js
40K	    messages.html
4.0K	room.png
180K	users

Outcome

What did you expect?

More messages, less CSS.

What happened instead?

I only noticed this when trying to debug #19436, going into the CSS file and being met with a very large file, one that dwarfs the others in my chat export.

Going out on a limb, I'm guessing this may be because the chat export feature simply takes the resulting CSS bundle from Element and simply exports that? I suppose that works and is low maintenance, but is does mean the export format will change occasionally and not deliberately.

Operating system

Arch Linux

Application version

Element Nightly version: 2021100901, Olm version: 3.2.3

How did you install the app?

The AUR

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-Export-ChatO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-TolerableLow/no impact on usersT-Defect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions