X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/193d7fb3fe71a76a43ebc1ccdb617b4b627d1e09..refs/pull/3210/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