]> BookStack Code Mirror - bookstack/commitdiff
Fixed linked images being micro on pdf export
authorDan Brown <redacted>
Sat, 1 Jan 2022 18:18:37 +0000 (18:18 +0000)
committerDan Brown <redacted>
Sat, 1 Jan 2022 18:18:37 +0000 (18:18 +0000)
Was caused by max-width: 100% causing confusion when images were
inside an anchor. This change resets that property on PDF
exports allowing full width images to be shown as so
without affecting smaller sizes.

Fixes #3120

resources/views/common/export-styles.blade.php

index 967dc19ec709264de9302900d967189358aa39e8..ae26613b199eae5f128f052e67911a3bf58d8e37 100644 (file)
@@ -46,5 +46,9 @@
             clear: both;
             display: block;
         }
+
+        .page-content a > img {
+            max-width: none;
+        }
     </style>
 @endif
\ No newline at end of file