@neo4j-antora/pdf-generator 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-antora/pdf-generator",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Generates a PDF export from an Antora docset, styled to match the real Neo4j docs site, via @antora/assembler + @antora/pdf-extension and asciidoctor-web-pdf",
5
5
  "main": "extension.js",
6
6
  "files": [
@@ -210,6 +210,20 @@ pre, code, kbd, tt {
210
210
  margin-bottom: 4pt;
211
211
  }
212
212
 
213
+ /* images */
214
+ /* An image with no explicit width renders at its own native pixel size - fine in a
215
+ browser's normal flow, but this page has a fixed content width (see @page above),
216
+ so a wide source image (e.g. a diagram sized for a wide screen) overflows the page's
217
+ right margin and gets cut off rather than shrinking to fit, the way most real sites'
218
+ own CSS already handles for free. Applies to the bare <img> tag directly rather than
219
+ a wrapper class, since that covers both Asciidoctor's block (.imageblock) and inline
220
+ (.image) image markup the same way. An image with an explicit width: attribute in
221
+ its own image::[] macro still honours that (this only caps it, never upscales). */
222
+ img {
223
+ max-width: 100%;
224
+ height: auto;
225
+ }
226
+
213
227
  /* tables */
214
228
  table.tableblock {
215
229
  border-collapse: collapse;