Skip to content

Hide Light/Dark Mode and Login Info from Printed Pages #18183

Closed
@jchambers2012

Description

@jchambers2012

Deployment Type

Self-hosted

Triage priority

I volunteer to perform this work (if approved)

NetBox Version

v4.1.7

Python Version

3.10

Steps to Reproduce

  1. Goto any object page at https://demo.netbox.dev/
  2. Ctrl-P
  3. View that the Lightmode/User menu exists.
    image

Expected Behavior

The site should suppress these items as they are also in the same section as the search input “d-print-none”

<header class="navbar navbar-expand-md sticky-top d-none d-lg-flex d-print-none">

Observed Behavior

It looks like the desktop version print view is somehow using/trigger the mobile view. I tested on both Chrome (131.0.6778.109 (Official Build) (64-bit)) and Firefox (128.5.1esr (64-bit)). Adding “d-print-none” to mobile view fixes the issue.
image

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions