roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.86k stars 1.63k forks source link

Elastic: "print" view truncates lines #9677

Open gcolpart opened 3 days ago

gcolpart commented 3 days ago

Prerequisites

Describe the issue

When I click on "print a message", the CSS print view truncates lines in particular when I select zoom 200% in print settings.

I have a dirty hotfix with editing /usr/share/roundcube/skins/elastic/deps/bootstrap.min.css in section @media print{and replace:

@page{size:a3}body{min-width:992px !important}.container{min-width:992px !important}

with:

@page{size:a3}body{}.container{min-width:992px !important}

Note : my hotfix is inspired by issue #7732

What browser(s) are you seeing the problem on?

Firefox

What version of PHP are you using?

8.2

What version of Roundcube are you using?

1.6.5

JavaScript errors

No response

PHP errors

No response

pabzm commented 3 days ago

Thank you for the bug report!

I can acknowledge the problem, but I wouldn't like to patch a third-party library.

Do you maybe can think of another way to fix this?

gcolpart commented 3 days ago

I find a proper way to fix without patching bootstrap.css.

Just add to print.less :

@media print {
 body{
  min-width: auto !important;
 }
}

If you want see directly the result without rebuilding CSS, you can simply add to print.min.css :

@media print{body{min-width: auto !important}}