Browse Source

Fixed print issue

Samson Mutunga 1 month ago
parent
commit
dd15e44ffd
1 changed files with 23 additions and 0 deletions
  1. 23 0
      resources/views/layouts/print-note-v3.blade.php

+ 23 - 0
resources/views/layouts/print-note-v3.blade.php

@@ -35,6 +35,29 @@
             -webkit-print-color-adjust: exact;
             -webkit-print-color-adjust: exact;
             height: auto; 
             height: auto; 
         }
         }
+
+        @media print {
+            html, body {
+                width: 100%;
+                max-width: 100%;
+                overflow-x: hidden;
+            }
+
+            * {
+                box-sizing: border-box;
+                max-width: 100% !important;
+                overflow-wrap: break-word !important;
+                word-wrap: break-word !important;
+                word-break: break-word !important;
+                white-space: normal !important;
+            }
+
+            pre, code {
+                white-space: pre-wrap !important;
+            }
+        }
+
+
         /** Define the margins of your page **/
         /** Define the margins of your page **/
         @page {
         @page {
             size: letter portrait;
             size: letter portrait;