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

Fixed #14821 - Hide UI elements from print view on assets #15278

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

snipe
Copy link
Owner

@snipe snipe commented Aug 13, 2024

This cleans up the print view a bit so people can print/PDF from the page without the extra UI elements.

Before:
Before - View Asset 37028370 :: Snipe-IT Demo.pdf

After:
View Asset 37028370 :: Snipe-IT Demo.pdf

Copy link

what-the-diff bot commented Aug 13, 2024

PR Summary

  • Update to Print Media Styles
    The appearance of various page elements when printing was improved. Our <html>, <body>, headings (<h1>, <h2>, <h3>), links (<a>), header (<#header>), some div elements (div.row-new-striped) and columns (<.col-sm-1> to <.col-sm-12>) will now have new styles for better readability and layout when printed.

  • Update to CSS File Paths
    The paths for two CSS files namely overrides.css and app.css in our Project Manifest were updated. This change ensures that the latest versions of these files are loaded when running the project.

  • Hide Certain Elements in Print View
    Specific items are now hidden when printing. For instance, in more-info.blade.php file, a certain <a> link now sports a hidden-print class, making it invisible on print to enhance the cleanliness of the printed version.

@snipe snipe merged commit 6e84c29 into develop Aug 13, 2024
6 of 9 checks passed
@snipe snipe deleted the print_view_improvements branch August 13, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant