Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block does not wrap text when printing #1496

Open
adjurk opened this issue Feb 18, 2020 · 3 comments
Open

Code block does not wrap text when printing #1496

adjurk opened this issue Feb 18, 2020 · 3 comments
Assignees
Labels
bug Something isn't working contrib-easy Easy dev difficulty for contribution ui UI related issues

Comments

@adjurk
Copy link

adjurk commented Feb 18, 2020

Describe the bug
Using built-in print feature, if there's a code block which contains text that is wider than the printed pdf, an unscrollable scroll bar is displayed.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Wiki page
  2. Paste a wide code block, for ex:
mkdir -p /tmp/gitea-dump/home-git-gitea-repositories && cp -r /home/git/gitea-repositories/* /tmp/gitea-dump/home-git-gitea-repositories
  1. Press the Print button in Wiki.js -> Print to PDF
  2. A pdf with an unscrollable scroll bar is generated inside that pdf.

Expected behavior
Text inside code block is automatically wrapped.

Screenshots
https://i.imgur.com/78WQ6Bp.png

Host Info (please complete the following information):

  • OS: Windows 10
  • Tested browsers: Google Chrome 79.0.3945.130, Microsoft Edge 44.18362.449.0 (EdgeHTML 18.18362)
  • Wiki.js version: 2.0.12
@NGPixel NGPixel added bug Something isn't working contrib-easy Easy dev difficulty for contribution ui UI related issues labels Feb 22, 2020
@iamshalin
Copy link

do we have any update on this Bug?

@mudasarellahi
Copy link

any update on this?

@oliveiradouglas
Copy link

Hello guys, I just fixed the issue.

@NGPixel can you review the pull request please? #7224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working contrib-easy Easy dev difficulty for contribution ui UI related issues
Projects
None yet
Development

No branches or pull requests

5 participants