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

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

Merged

Conversation

jchambers2012
Copy link
Contributor

Fixes: #18183

This will add the d-print-none to the mobile view so objects being printed out will suppress the Light/Dark Mode and Login Info. Looking at the template, it was intended to suppress these details, but Chrome and Firefox are triggering in the mobile view for printing. I tested on both Chrome (131.0.6778.109 (Official Build) (64-bit)) and Firefox (128.5.1esr (64-bit)).

Pre-Change:

393964173-19d8d757-40dd-406a-9424-63ec6b464072

Post Change:

393964481-8cfff0cc-e9b0-4bf2-87d0-f3c11009df9c

@jchambers2012
Copy link
Contributor Author

jchambers2012 commented Dec 9, 2024

@jeremystretch - would you prefer no logo or logo? Also I'm not a CSS wizard but I can add classes....

Adding to aside:

Line 22
<aside class="navbar navbar-vertical navbar-expand-lg d-print-none">
image

Adding to User menu (mobile view) div:

Line 45
<div class="navbar-nav flex-row align-items-center d-lg-none d-print-none">
image

@jeremystretch
Copy link
Member

IMO it makes sense to omit the entire top bar when printing (<aside class="navbar navbar-vertical navbar-expand-lg d-print-none">).

@jchambers2012
Copy link
Contributor Author

IMO it makes sense to omit the entire top bar when printing (<aside class="navbar navbar-vertical navbar-expand-lg d-print-none">).

Updated

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jchambers2012!

@jeremystretch jeremystretch merged commit 001f06c into netbox-community:develop Dec 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide Light/Dark Mode and Login Info from Printed Pages
2 participants