]> BookStack Code Mirror - bookstack/blobdiff - resources/views/common/export-styles.blade.php
fix(503): massively simplify the 503 error view
[bookstack] / resources / views / common / export-styles.blade.php
index 967dc19ec709264de9302900d967189358aa39e8..ee10637dddf4e0a0022f2feb4e78bc08d38a165f 100644 (file)
             clear: both;
             display: block;
         }
+
+        @if($engine === \BookStack\Entities\Tools\PdfGenerator::ENGINE_DOMPDF)
+        {{-- Fix for full width linked image sizes on DOMPDF --}}
+        .page-content a > img {
+            max-width: 700px;
+        }
+        {{-- Undoes the above for table images to prevent visually worse scenario, Awaiting next DOMPDF release for patch --}}
+        .page-content td a > img {
+            max-width: 100%;
+        }
+        @endif
     </style>
 @endif
\ No newline at end of file