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

Recipes are only partially printed or printed incorrectly #2185

Open
Vrumfondel1 opened this issue Mar 11, 2024 · 2 comments
Open

Recipes are only partially printed or printed incorrectly #2185

Vrumfondel1 opened this issue Mar 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Vrumfondel1
Copy link

Vrumfondel1 commented Mar 11, 2024

Description
Recipes are only partially printed or printed incorrectly

Reproduction
Steps to reproduce the behavior:

  1. Enter or import any recipe
  2. Click on "Print recipe"
  3. See error

Actual behavior
The recipes are only displayed partially or with blank pages (see screen shots and attachments)

Screenshots
Manually created recipe Screenshot and PDF
Manually created recipe
Manually created recipe.PDF

Imported recipe Screenshot and PDF
Imported recipe
Imported Recipe.PDF

Browser
Tested with different Android Browsers on Samsung Galaxy Tab S7+ (Dex) and with Edge and Chrome on Windows

Versions
Nextcloud server version: 27.1.5 Enterprise
Cookbook version: 0.10.5
Database system: MySQL 10.5.19

@Vrumfondel1 Vrumfondel1 added the bug Something isn't working label Mar 11, 2024
@Vrumfondel1 Vrumfondel1 changed the title Faulty printaouts Faulty printouts Mar 11, 2024
@Vrumfondel1 Vrumfondel1 changed the title Faulty printouts Recipes are only partially printed or printed incorrectly Mar 12, 2024
@RobboBT
Copy link

RobboBT commented Mar 16, 2024

Will only print ingredients, does not print instructions. tested in Chrome, Safari and Firefox.

@Hagar01
Copy link

Hagar01 commented Jun 8, 2024

I had a similar issue - different browsers printed differentley.
I had to replace the following css line from RecipeView.vue -

grid-template-rows: 100% 100% 100% 1fr;

with

grid-template-rows: auto 1fr;

This also had the effect of displaying on the screen better.
This line was forcing each section to be the same length, even though 1 might be missing or shorter.
It also affected printing in that it was stretching the sections to large blank areas.
Please don't specify the size of the grid-rows - let them set their own size based on the current sizes.
Currently you have the height set to 300% instead of auto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants