nextcloud / nextcloud/mail

Changing font size in html messages and signature has no effect

Open
#10,167 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce

Change font size message/signature

Expected behavior

See different sizes in received mail.

Actual behavior

Size is dispayed correctyl in the editor, but not in the received message.

Mail app version

3.7.8

Mailserver or service

No response

Operating system

Linux 5.4.0-196-generic x86_64

PHP engine version

PHP 8.2

Web server

None

Database

MySQL

Additional info

As font family ist displayed correctly, the size-tag has to be implemented inside the style, not as a class.
E.g.
Instead of...
<span class=3D"text-small" style=3D"font-family:Arial, Helvetica, sans-serif;">Small Text to be displayed</span>
This would be correct:
<span style=3D"font-family:Arial, Helvetica, sans-serif; font-size:small;">Small Text to be displayed</span>
class "text-small" is not defined on most receiver systems.

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.

Research direction

No file or test is named. Reproduce the issue in Mail 3.7.8 by changing the font size in a message or signature, then trace the HTML generation for received mail. Done means the generated span carries the selected font size in its inline style and the size is visible in received mail.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.