Skip to content

Constrain avatar size in printed messages#1838

Open
bolasse1234 wants to merge 1 commit into
runbox:masterfrom
bolasse1234:fix-print-avatar-size
Open

Constrain avatar size in printed messages#1838
bolasse1234 wants to merge 1 commit into
runbox:masterfrom
bolasse1234:fix-print-avatar-size

Conversation

@bolasse1234
Copy link
Copy Markdown

Summary

Fixes #1824 by adding print-only styles for the avatar bar before the message HTML is loaded into the print iframe. The printed iframe receives raw innerHTML, so Angular component styles from app-avatar-bar are not present there; without those styles, avatar images can render at their intrinsic size.

The added styles only target app-avatar-bar, leaving message body images unchanged.

Validation

  • npx eslint src/app/mailviewer/singlemailviewer.component.ts src/app/mailviewer/singlemailviewer.component.spec.ts (passes with existing warnings)
  • npx tsc -p src/tsconfig.spec.json --noEmit
  • npx ng build --base-href=/app/ runbox7 (passes with existing project warnings)

I could not run the Karma browser test locally because Firefox/Chrome/Edge are not available on PATH in this environment.

Disclosure

I used AI assistance to inspect the print path and draft this small patch, then validated the changed code with the commands above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Printing a mail from a recipient with an avatar prints avatar on full page width

1 participant