Navigation shown on prints (landscape only)

Created on 18 August 2024, 8 months ago
Updated 28 August 2024, 8 months ago

Problem/Motivation

If I print a page in admin area in portrait mode it does not show the navigation in prints. If I change the layout to landscape mode, the prints also shows the navigation bar. The navigation should not shown on prints at all.

I know it is experimental, but like to document it here at least - just in case this in an unknown defect.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.3

Component
Navigation 

Last updated about 2 hours ago

No maintainer
Created by

🇩🇪Germany marc.bau

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @marc.bau
  • Pipeline finished with Failed
    8 months ago
    Total: 321s
    #266806
  • Pipeline finished with Failed
    8 months ago
    Total: 312s
    #266807
  • Status changed to Needs review 8 months ago
  • Hi,
    I have created the MR !9351 for this feature.

  • Pipeline finished with Success
    8 months ago
    Total: 915s
    #267117
  • Status changed to Needs work 8 months ago
  • 🇺🇸United States smustgrave

    Thanks for reporting but fixes should be against the 11.x branch as the current development branch

    Thanks.

  • 🇩🇪Germany marc.bau

    Thank you for the fix. I hope it get backported as v11 is not an option for next months.

  • Pipeline finished with Success
    8 months ago
    Total: 807s
    #267354
  • Pipeline finished with Success
    8 months ago
    Total: 43886s
    #267366
  • Pipeline finished with Success
    8 months ago
    Total: 514s
    #267765
  • manibharathi ezhimalai ravi changed the visibility of the branch 3468755- to hidden.

  • Pipeline finished with Success
    8 months ago
    Total: 875s
    #267764
  • Pipeline finished with Success
    8 months ago
    Total: 387s
    #267781
  • Status changed to Needs review 8 months ago
  • Hi,
    I have created the MR !9368 for the Branch 11.x.

  • Status changed to Postponed: needs info 7 months ago
  • 🇪🇸Spain ckrina Barcelona

    First thanks for trying out the new Navigation.

    If I print a page in admin area in portrait mode it does not show the navigation in prints. If I change the layout to landscape mode, the prints also shows the navigation bar.

    This might be related to the viewport?

    The navigation should not shown on prints at all.

    Why shouldn't it? Which is the user need, the justification behind it?

    We can't make this kind of assumptions without actually reasoning them :)

  • 🇩🇪Germany marc.bau

    It is common that print views only who useful content and not navigations. If you need the navigation for documentation reasons or mockups you can make screenshots and print these. But in all other cases a user like to print the page content and not navigations bars.

  • 🇨🇦Canada m4olivei Grimsby, ON

    @ckrina there is precedent for this in the toolbar module. It has print styles to hide the toolbar for @media print:

    https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/toolb...

    Do you think that is reason enough to do the same thing for Navigation module as well? To be sure, it doesn't look like there was a very robust discussion for/against this in the issue where it was added. See #2403639: Remove toolbar from print view .

  • Status changed to Needs work 7 months ago
  • 🇬🇧United Kingdom catch

    The usual reason to 'print' a webpage is to save a long article as a PDF using print-to-PDF either to read offline or to convert to a more easily readable format. For this use-case you would want as little site chrome as possible, just the text and images from the main body content.

    I don't think there's any use case for physically printing (or PDF printing) a web page as it actually looks with admin-only navigation elements, so makes sense to remove that.

    On the MR itself, I don't think it needs an @media print in the file - that ought to be handled in the library definition given it's already a separate file?

  • 🇮🇳India rinku jacob 13 Kerala

    rinku jacob 13 made their first commit to this issue’s fork.

  • Merge request !11458hide navigation on prints → (Open) created by rinku jacob 13
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 73s
    #447169
  • 🇮🇳India rinku jacob 13 Kerala

    I created a new branch because I encountered conflict errors when trying to check out to the old branches. also, in the previous MR, no SCSS file was created. We need to create the SCSS file, and after compilation, it will automatically generate the CSS file. Based on the comments in the catch, I have made some changes to my MR

  • Pipeline finished with Running
    about 1 month ago
    Total: 5666s
    #447170
Production build 0.71.5 2024