]> BookStack Code Mirror - bookstack/blobdiff - resources/views/common/export-styles.blade.php
Updated attachment links to have dropdown for open type
[bookstack] / resources / views / common / export-styles.blade.php
index 967dc19ec709264de9302900d967189358aa39e8..1dfa6bb45b63ef9d299d1bd15123b48fcf7802af 100644 (file)
@@ -1,5 +1,5 @@
 <style>
-    @if (!app()->environment('testing'))
+    @if (!app()->runningUnitTests())
         {!! file_get_contents(public_path('/dist/export-styles.css')) !!}
     @endif
 </style>
             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