X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/756b55bbffedb6e5fde91f9fbc61f5a382f20705..refs/pull/3333/head:/resources/views/common/export-styles.blade.php diff --git a/resources/views/common/export-styles.blade.php b/resources/views/common/export-styles.blade.php index 967dc19ec..ee10637dd 100644 --- a/resources/views/common/export-styles.blade.php +++ b/resources/views/common/export-styles.blade.php @@ -46,5 +46,16 @@ 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 @endif \ No newline at end of file